instance method inherited_with_helper

Ruby on Rails 2.2.3

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 actionpack/lib/action_controller/helpers.rb, line 202
        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.__send__ :default_helper_module!
          rescue MissingSourceFile => e
            raise unless e.is_missing?("helpers/#{child.controller_path}_helper")
          end
        end

Defined in actionpack/lib/action_controller/helpers.rb line 202 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Helpers::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close