Module: Authenticate::Debug
- Extended by:
- ActiveSupport::Concern
- Included in:
- Controller, Lifecycle, Session
- Defined in:
- lib/authenticate/debug.rb
Instance Method Summary collapse
Instance Method Details
#debug(msg) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/authenticate/debug.rb', line 6 def debug(msg) if defined?(Rails) && defined?(Rails.logger) Rails.logger.info msg.to_s if Authenticate.configuration.debug else puts msg.to_s if Authenticate.configuration.debug end end |