Top Level Namespace
Defined Under Namespace
Modules: ApplicationHelper, Concept, ConceptsHelper, DashboardHelper, Iqvoc, RdfHelper, SearchExtension, SearchResultsHelper Classes: ApplicationController, CollectionsController, ConceptsController, ConfigurationSetting, DashboardController, ImportController, InstanceConfigurationController, OriginMapping, PagesController, RdfController, RdfStore, SearchResultsController, String, TripleStoreSyncsController, User, UserSession, UserSessionsController, UsersController
Instance Method Summary collapse
Instance Method Details
#dbg(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/debug.rb', line 3 def dbg(*args) prefix = "#{args.shift} " if [String, Symbol].include?(args.first.class) msg = args.map(&:inspect).join(" | ") msg = "#{prefix}#{msg}" if defined?(Rails::Console) || Rails.env.test? # STDOUT is usually available here puts "[DEBUG] #{msg}" else Rails.logger.tagged("DEBUG") { Rails.logger.debug msg } end end |