Skip to content

Commit

Permalink
use hirb by default
Browse files Browse the repository at this point in the history
also display sql queries in console
  • Loading branch information
ingojaeckel committed Nov 6, 2009
1 parent 93299df commit 2123cb8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
13 changes: 12 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@
config.action_controller.perform_caching = false

# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.raise_delivery_errors = false

# use hirb
config.gem 'hirb'

if $0 == 'irb'
require 'hirb'
Hirb.enable

# show sql queries in console
ActiveRecord::Base.logger = Logger.new STDOUT
end
13 changes: 13 additions & 0 deletions config/hirb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:output:
# Url Model
Url:
:options:
:fields:
- id
- name
- description
- quick_mode_tag_list
NamespaceTree:
:class: Hirb::Helpers::Tree
:output_method: to_tree
:ancestor: true

0 comments on commit 2123cb8

Please sign in to comment.