Sha256: de28af887aab1dcb17ece966425af21c82d28f12d50a260cc238dee5691af915

Contents?: true

Size: 586 Bytes

Versions: 181

Compression:

Stored size: 586 Bytes

Contents

module ActionController
  module Railties
    module Helpers
      def inherited(klass)
        super
        return unless klass.respond_to?(:helpers_path=)

        if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_helpers_paths) }
          paths = namespace.railtie_helpers_paths
        else
          paths = ActionController::Helpers.helpers_path
        end

        klass.helpers_path = paths

        if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers
          klass.helper :all
        end
      end
    end
  end
end

Version data entries

181 entries across 176 versions & 12 rubygems

Version Path
actionpack-5.1.0.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.0.2 lib/action_controller/railties/helpers.rb
actionpack-5.0.2.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.1.0.beta1 lib/action_controller/railties/helpers.rb
actionpack-4.2.8 lib/action_controller/railties/helpers.rb
actionpack-4.2.8.rc1 lib/action_controller/railties/helpers.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/railties/helpers.rb
abaci-0.3.0 vendor/bundle/gems/actionpack-5.0.0/lib/action_controller/railties/helpers.rb
actionpack-5.0.1 lib/action_controller/railties/helpers.rb
actionpack-5.0.1.rc2 lib/action_controller/railties/helpers.rb
actionpack-5.0.1.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.0.0.1 lib/action_controller/railties/helpers.rb
actionpack-4.2.7.1 lib/action_controller/railties/helpers.rb
actionpack-4.2.7 lib/action_controller/railties/helpers.rb