Ticket #6781: console_helper_can_load_helper_files.diff
| File console_helper_can_load_helper_files.diff, 0.6 kB (added by Chris Wanstrath, 2 years ago) |
|---|
-
railties/lib/console_with_helpers.rb
old new 10 10 end 11 11 end 12 12 13 def helper 14 @helper_proxy ||= Object.new 13 def helper(*helper_names) 14 returning @helper_proxy ||= Object.new do |helper| 15 helper_names.each { |h| helper.extend "#{h}_helper".classify.constantize } 16 end 15 17 end 16 18 17 19 require 'application' … … 21 23 end 22 24 23 25 @controller = ApplicationController.new 26 helper :application rescue nil