Skip to content

Instantly share code, notes, and snippets.

@aliang
Created June 12, 2011 08:12
Show Gist options
  • Select an option

  • Save aliang/1021343 to your computer and use it in GitHub Desktop.

Select an option

Save aliang/1021343 to your computer and use it in GitHub Desktop.

Revisions

  1. aliang created this gist Jun 12, 2011.
    16 changes: 16 additions & 0 deletions application.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # taken from http://railsbros.de/2010/11/29/a-custom-irbrc-for-rails-3.html
    # config/application.rb that is
    module MyApp
    class Application < Rails::Application
    # config stuff comes here

    def load_console(sandbox=false)
    super
    if File.exists?(project_specific_irbrc = File.join(Rails.root, ".irbrc"))
    puts "Loading project specific .irbrc ..."
    load(project_specific_irbrc)
    end
    end

    end
    end