Sha256: 9bee80ddbb3c2f7996a38309b15c67061d66458341e43ca07255726bf00a49f9

Contents?: true

Size: 174 Bytes

Versions: 3

Compression:

Stored size: 174 Bytes

Contents

class UsersPermittedParams < Zertico::PermittedParams
  def create
    params.require(:user).permit(:name)
  end

  def update
    params.require(:user).permit(:id)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zertico-2.0.0.alpha.3 spec/fake_app/app/permitted_params/users_permitted_params.rb
zertico-2.0.0.alpha.2 spec/fake_app/app/permitted_params/users_permitted_params.rb
zertico-2.0.0.alpha.1 spec/fake_app/app/permitted_params/users_permitted_params.rb