Module: RademadeAdmin::UserModule
- Defined in:
- lib/rademade_admin/user.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *arguments) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/rademade_admin/user.rb', line 10
def method_missing(name, *arguments)
if %w(id email password valid_password? admin?).include? name
raise NotImplementedError.new "Implement '#{name}' method"
end
super
end
|
Class Method Details
.get_by_email(email) ⇒ Object
6
7
8
|
# File 'lib/rademade_admin/user.rb', line 6
def self.get_by_email(email)
raise NotImplementedError.new "Implement 'get_by_email' method"
end
|