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