instance method
inherited_with_helper
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
inherited_with_helper(child)
No documentation comment.
Parameters
-
childreq
Source
# File actionmailer/lib/action_mailer/helpers.rb, line 91
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.helper child.name.to_s.underscore
rescue MissingSourceFile => e
raise unless e.is_missing?("helpers/#{child.name.to_s.underscore}_helper")
end
end
Defined in actionmailer/lib/action_mailer/helpers.rb line 91
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Helpers::ClassMethods