Class: CanTango::Configuration::UserAccount
- Inherits:
-
Object
- Object
- CanTango::Configuration::UserAccount
- Includes:
- ClassExt, Singleton
- Defined in:
- lib/cantango/configuration/user_account.rb
Instance Method Summary collapse
Instance Method Details
#base_class ⇒ Object
11 12 13 |
# File 'lib/cantango/configuration/user_account.rb', line 11 def base_class @clazz ||= (::UserAccount if defined? ::UserAccount) end |
#base_class=(clazz) ⇒ Object
15 16 17 18 |
# File 'lib/cantango/configuration/user_account.rb', line 15 def base_class= clazz raise ArgumentError, "Must be a class, was: #{clazz}" unless is_class? clazz @clazz = clazz end |
#clear! ⇒ Object
7 8 9 |
# File 'lib/cantango/configuration/user_account.rb', line 7 def clear! @clazz = nil end |