Module: Cornerstone::ActsAsCornerstoneUser::ClassMethods
- Defined in:
- lib/cornerstone/acts_as_cornerstone_user.rb
Instance Method Summary collapse
-
#acts_as_cornerstone_user(options = {}) ⇒ Object
Method placed within User model of parent application and used to set Cornerstone options for the model.
Instance Method Details
#acts_as_cornerstone_user(options = {}) ⇒ Object
Method placed within User model of parent application and used to set Cornerstone options for the model.
33 34 35 36 37 38 39 40 41 |
# File 'lib/cornerstone/acts_as_cornerstone_user.rb', line 33 def acts_as_cornerstone_user( = {}) # == Options # TODO: CHECK that the methods given actually exist and raise error if not # CHECK that values given are good types self.cornerstone_name_method = [:user_name] if [:user_name] self.cornerstone_email_method = [:user_email] if [:user_email] self.cornerstone_admin = [:admin] if [:admin] end |