Sign In With Apple JS をローカルでとりあえず動かしてみるリポジトリです。
- ローカルで WEBrick サーバを動かします。
ruby server.rb| sealed class State { | |
| object NotSaved : State() | |
| object Saved : State() | |
| } | |
| sealed class SessionDataModel<S : State> { | |
| abstract val title: String | |
| abstract val isLiked: Boolean | |
| fun toggleLike() { |
| package reactive.view.lifecycle | |
| import androidx.lifecycle.Lifecycle | |
| import androidx.lifecycle.LifecycleObserver | |
| import androidx.lifecycle.LifecycleOwner | |
| import androidx.lifecycle.OnLifecycleEvent | |
| import androidx.lifecycle.ViewModelStoreOwner | |
| import io.reactivex.disposables.CompositeDisposable | |
| import io.reactivex.disposables.Disposable | |
| import reactive.viewmodel.ReactiveViewModel |
| import RxTest.Result.Error4XX | |
| import RxTest.Result.Error5XX | |
| import RxTest.Result.Success | |
| import io.reactivex.Single | |
| import io.reactivex.observers.TestObserver | |
| import org.junit.Test | |
| class RxTest { | |
| enum class Result { |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
Rails4のMass Assignment脆弱性対策のStrong Parametersについて | DevAchieve
def users_children_params
params.fetch(:user, {}).permit(
:children_attributes => [:id, :birthday, :_destroy],
)
end