Class: Mongoid::Userstamps::Config::User

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/userstamps/config/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#readerObject

Returns the value of attribute reader.



5
6
7
# File 'lib/mongoid/userstamps/config/user.rb', line 5

def reader
  @reader
end