Module: Verse::Controller::StrongParams
- Included in:
- Verse::Controller
- Defined in:
- lib/verse/controller/strong_params.rb
Instance Method Summary collapse
-
#admin_attributes ⇒ Object
Verse::Relatable.
- #business_attributes ⇒ Object
-
#email_attributes ⇒ Object
Verse::Auth / Verse::Contactable.
-
#entity_attributes ⇒ Object
Verse::Core.
- #household_attributes ⇒ Object
- #person_attributes ⇒ Object
-
#session_attributes ⇒ Object
Verse::Auth.
- #user_attributes ⇒ Object
Instance Method Details
#admin_attributes ⇒ Object
Verse::Relatable
34 |
# File 'lib/verse/controller/strong_params.rb', line 34 def admin_attributes; end |
#business_attributes ⇒ Object
25 26 27 |
# File 'lib/verse/controller/strong_params.rb', line 25 def business_attributes params.require(:business).permit(:name, :slug, { admins_attributes: [:admin_id] }) end |
#email_attributes ⇒ Object
Verse::Auth / Verse::Contactable
5 |
# File 'lib/verse/controller/strong_params.rb', line 5 def email_attributes; end |
#entity_attributes ⇒ Object
Verse::Core
17 18 19 |
# File 'lib/verse/controller/strong_params.rb', line 17 def entity_attributes params.require(:entity).permit(:name, :slug, { admins_attributes: [:admin_id] }) end |
#household_attributes ⇒ Object
29 30 31 |
# File 'lib/verse/controller/strong_params.rb', line 29 def household_attributes params.require(:household).permit(:name, { admins_attributes: [:admin_id] }) end |
#person_attributes ⇒ Object
21 22 23 |
# File 'lib/verse/controller/strong_params.rb', line 21 def person_attributes params.require(:person).permit(:name, :slug, { admins_attributes: [:admin_id] }) end |
#session_attributes ⇒ Object
Verse::Auth
8 9 10 |
# File 'lib/verse/controller/strong_params.rb', line 8 def session_attributes params.require(:session).permit(:login, :password) end |
#user_attributes ⇒ Object
12 13 14 |
# File 'lib/verse/controller/strong_params.rb', line 12 def user_attributes params.require(:user).permit(:name, :username, :email, :password, :password_confirmation) end |