Module: Mongoid::Userstamps::User

Extended by:
ActiveSupport::Concern
Defined in:
lib/mongoid/userstamps/user.rb

Instance Method Summary collapse

Instance Method Details

#current?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/mongoid/userstamps/user.rb', line 10

def current?
  id == self.class.current.try(:id)
end