Class: Mongoid::Userstamps::Config::User
- Inherits:
-
Object
- Object
- Mongoid::Userstamps::Config::User
- Defined in:
- lib/mongoid/userstamps/config/user.rb
Instance Attribute Summary collapse
-
#reader ⇒ Object
Returns the value of attribute reader.
Instance Method Summary collapse
-
#initialize(model) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(model) ⇒ User
Returns a new instance of User.
7 8 9 |
# File 'lib/mongoid/userstamps/config/user.rb', line 7 def initialize(model) @reader = "current_#{model.name.underscore}".to_sym end |
Instance Attribute Details
#reader ⇒ Object
Returns the value of attribute reader.
5 6 7 |
# File 'lib/mongoid/userstamps/config/user.rb', line 5 def reader @reader end |