Sha256: 56316e5503996dc1a464adb9a70829d319cf62139b7089e9ae10c9a9b8bf937c

Contents?: true

Size: 198 Bytes

Versions: 56

Compression:

Stored size: 198 Bytes

Contents

module WithUserParams
  extend ActiveSupport::Concern

  def user_params
    params.require(:user).permit(*permissible_params).to_h
  end

  def permissible_params
    User.profile_fields
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
mumuki-laboratory-7.10.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.10.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.10.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.9.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.9.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.9.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.6 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.5 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.4 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.8.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.3 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.7.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.6.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.6.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.6.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.5.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.5.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.5.0 app/controllers/concerns/with_user_params.rb