Method: Croods::Resource::Authentication#use_for_authentication!
- Defined in:
- lib/croods/resource/authentication.rb
#use_for_authentication!(*options) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/croods/resource/authentication.rb', line 19 def use_for_authentication!(*) add_model_authentication(*) skip_attributes(*ATTRIBUTES) skip_attribute(Croods.tenant_attribute) if Croods.multi_tenancy? request do add_attribute :password, :string, null: false skip_attribute :admin end end |