Class: CanTango::Config::Account
- Inherits:
-
Object
- Object
- CanTango::Config::Account
- Includes:
- ClassExt, Singleton
- Defined in:
- lib/cantango/config/account.rb
Instance Method Summary collapse
Instance Method Details
#base_class ⇒ Object
11 12 13 |
# File 'lib/cantango/config/account.rb', line 11 def base_class @clazz ||= try_class[::UserAccount, ::Account] end |
#base_class=(clazz) ⇒ Object
15 16 17 18 |
# File 'lib/cantango/config/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/config/account.rb', line 7 def clear! @clazz = nil end |