Module: TinyCore::Role::Account::Admin

Includes:
TinyCore::Role
Defined in:
lib/tiny_core/role/account/admin.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/tiny_core/role/account/admin.rb', line 7

def method_missing(method)
  if method.to_s =~ /^can_.*\?$/
    true
  else
    super
  end
end