lib/draper/all_helpers.rb in draper-0.7.0 vs lib/draper/all_helpers.rb in draper-0.7.1
- old
+ new
@@ -25,9 +25,15 @@
modules_for_helpers([:all]).each do |mod|
proxy.extend(mod)
end
proxy.instance_eval do
+ def controller
+ #Object.controller
+ end
+ end
+
+ proxy.instance_eval do
# A hack since this proxy doesn't pick up default_url_options from anywhere
def url_for(*args)
if args.last.is_a?(Hash) && !args.last[:only_path]
args = args.dup
args << args.pop.merge('host' => ActionMailer::Base.default_url_options[:host])
\ No newline at end of file