instance method inherited_with_helper

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

inherited_with_helper(child)

No documentation comment.

Parameters

child req
Source
# File actionmailer/lib/action_mailer/helpers.rb, line 93
        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 93 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionMailer::Helpers::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close