Skip to content

Commit

Permalink
there must be a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
darthschmoo committed Apr 20, 2015
1 parent 5a8165a commit 0c91c98
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
15 changes: 14 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ def markdown( text = "" )
def html_id( record )
"#{record.class.name.tableize.singularize}_#{ record.id }"
end

def debugging_info
out << "\n"
out << "logger: #{Rails.logger.inspect}\n"
out << "Rails.version: #{Rails.version}"

out << "Gems -----"
for g in Gem.loaded_specs.keys.sort
out << " #{g} => #{Gem.loaded_specs[g].inspect}\n"
end

out.html_safe
end
end

ApplicationHelper.extend(ApplicationHelper)
ApplicationHelper.extend ApplicationHelper
3 changes: 2 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@

= render partial: "/layouts/application_footer"
= render partial: "/layouts/boot_sequence"


/ debugging_info
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# config.force_ssl = true

# See everything in the log (default is :info)
# config.log_level = :debug
config.log_level = :debug

# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/app_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Tweak a few of the settings
Sorcery.config.book.epubforge_projects_dir.promote_configuration(Rails.env)
Sorcery.config.book.epubforge_projects_dir.promote_configuration( Rails.env )

for setting in [:host, :protocol, :port]
Sorcery.config.request[setting].promote_configuration( Rails.env )
Expand Down

0 comments on commit 0c91c98

Please sign in to comment.