Module: DeviseBasecamper::Basecamper::ClassMethods
- Defined in:
- lib/devise-basecamper/basecamper.rb
Instance Method Summary collapse
-
#basecamper ⇒ Object
Quick access to the models configuration ———.
-
#devise_basecamper(opts = {}) ⇒ Object
Helper method for configuration options on the model.
Instance Method Details
#basecamper ⇒ Object
Quick access to the models configuration ———
24 25 26 27 |
# File 'lib/devise-basecamper/basecamper.rb', line 24 def basecamper self.devise_basecamper if @devise_basecamper_settings.nil? return @devise_basecamper_settings end |
#devise_basecamper(opts = {}) ⇒ Object
Helper method for configuration options on the model
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/devise-basecamper/basecamper.rb', line 10 def devise_basecamper(opts={}) defaults = { subdomain_class: :account, subdomain_field: :subdomain, scope_field: :account_id, login_fields: [:username, :email], login_attribute: :login } @devise_basecamper_settings = defaults.merge(opts) end |