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-8.6.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.6.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.5.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.4.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.3.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.2.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.2.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.1.3 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.1.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.1.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.1.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.12.3 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-8.0.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.12.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.12.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.11.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.11.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.10.5 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.10.4 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-7.10.3 app/controllers/concerns/with_user_params.rb