Join GitHub today
Console hooks are broken #74
I'm trying to add default methods to the console like this:
# config/application.rb # Source http://opensoul.org/2012/11/08/add-helper-methods-to-your-rails-console/ console do require 'console_foo' Rails::ConsoleMethods.include(ConsoleFoo) end
I could get this working by doing
Just ran into this as well. Can confirm that switching back to IRB mitigates the problem.
class Application < Rails::Application module ConsoleHelpers def bar; :bar; end end console do module Rails::ConsoleMethods include ConsoleHelpers def foo; :foo; end end end end