Module: MmLoggedTime::MongoMapperExtensions::ClassMethods
- Defined in:
- lib/mm_logged_time/mongo_mapper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#logged_time_level ⇒ Object
11 12 13 |
# File 'lib/mm_logged_time/mongo_mapper_extensions.rb', line 11 def logged_time_level @logged_time_level end |
#logged_time_level=(level) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/mm_logged_time/mongo_mapper_extensions.rb', line 4 def logged_time_level=(level) unless MmLoggedTime::VALID_LEVELS.include?(level) raise "Invalid log level. Valid options are: #{MmLoggedTime::VALID_LEVELS.inspect}" end @logged_time_level = level end |