Class: CanTango::Configuration::UserAccount

Inherits:
Object
  • Object
show all
Includes:
ClassExt, Singleton
Defined in:
lib/cantango/configuration/user_account.rb

Instance Method Summary collapse

Instance Method Details

#base_classObject



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

Raises:

  • (ArgumentError)


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