Module: Verse::Controller::StrongParams

Included in:
Verse::Controller
Defined in:
lib/verse/controller/strong_params.rb

Instance Method Summary collapse

Instance Method Details

#admin_attributesObject

Verse::Relatable



34
# File 'lib/verse/controller/strong_params.rb', line 34

def admin_attributes; end

#business_attributesObject



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_attributesObject

Verse::Auth / Verse::Contactable



5
# File 'lib/verse/controller/strong_params.rb', line 5

def email_attributes; end

#entity_attributesObject

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_attributesObject



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_attributesObject



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_attributesObject

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_attributesObject



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