vendor/rails/actionmailer/lib/action_mailer/helpers.rb in radiant-0.7.2 vs vendor/rails/actionmailer/lib/action_mailer/helpers.rb in radiant-0.8.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'active_support/dependencies' + module ActionMailer module Helpers #:nodoc: def self.included(base) #:nodoc: # Initialize the base module to aggregate its helpers. base.class_inheritable_accessor :master_helper_module @@ -70,11 +72,11 @@ # makes the link_to controller method available in the view. def helper_method(*methods) methods.flatten.each do |method| master_helper_module.module_eval <<-end_eval def #{method}(*args, &block) - controller.send!(%(#{method}), *args, &block) + controller.__send__(%(#{method}), *args, &block) end end_eval end end @@ -90,10 +92,10 @@ private def inherited_with_helper(child) inherited_without_helper(child) begin child.master_helper_module = Module.new - child.master_helper_module.send! :include, master_helper_module + child.master_helper_module.__send__(:include, master_helper_module) child.helper child.name.to_s.underscore rescue MissingSourceFile => e raise unless e.is_missing?("helpers/#{child.name.to_s.underscore}_helper") end end