vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb
# Checking for the logger in hopes we can get rid of the ugly syntax someday
Checking for the logger in hopes we can get rid of the ugly syntax someday
Checking for the logger in hopes we can get rid of the ugly syntax someday
def logger
      if defined?(Rails.logger)
        Rails.logger
      elsif defined?(RAILS_DEFAULT_LOGGER)
        RAILS_DEFAULT_LOGGER
      end
    end
def logger if defined? ( Rails . logger ) Rails . logger elsif defined? ( RAILS_DEFAULT_LOGGER ) RAILS_DEFAULT_LOGGER end end
Checking for the logger in hopes we can get rid of the ugly syntax someday
Checking for the logger in hopes we can get rid of the ugly syntax someday