Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/has_many_polymorphs/support_methods.rb
Instance Method Summary collapse
-
#_logger_debug(s) ⇒ Object
Logger shortcut.
-
#_logger_warn(s) ⇒ Object
Logger shortcut.
-
#_metaclass ⇒ Object
Returns the metaclass of self.
Instance Method Details
#_logger_debug(s) ⇒ Object
Logger shortcut.
60 61 62 |
# File 'lib/has_many_polymorphs/support_methods.rb', line 60 def _logger_debug s RAILS_DEFAULT_LOGGER.debug(s) if RAILS_DEFAULT_LOGGER end |
#_logger_warn(s) ⇒ Object
Logger shortcut.
65 66 67 68 69 70 71 |
# File 'lib/has_many_polymorphs/support_methods.rb', line 65 def _logger_warn s if RAILS_DEFAULT_LOGGER RAILS_DEFAULT_LOGGER.warn(s) else $stderr.puts("has_many_polymorphs: #{s}") end end |
#_metaclass ⇒ Object
Returns the metaclass of self.
57 |
# File 'lib/has_many_polymorphs/support_methods.rb', line 57 def ; (class << self; self; end); end |