Sha256: dba0c3ac8d5ce085b552dbe98c44f69751cbb1e82ddf4dc1b36ad2d0b920b9b7

Contents?: true

Size: 291 Bytes

Versions: 46

Compression:

Stored size: 291 Bytes

Contents

module WithUserParams
  extend ActiveSupport::Concern

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

  def user_name_params
    params.require(:user).permit(:first_name, :last_name).to_h
  end

  def permissible_params
    User.profile_fields
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.22.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.21.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.20.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.20.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.19.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.18.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.18.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.17.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.16.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.15.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.14.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.14.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.13.2 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.13.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.13.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.12.1 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.12.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.11.0 app/controllers/concerns/with_user_params.rb
mumuki-laboratory-9.10.0 app/controllers/concerns/with_user_params.rb