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-4.2.11.3 lib/action_controller/railties/helpers.rb
actionpack-4.2.11.2 lib/action_controller/railties/helpers.rb
actionpack-5.1.7 lib/action_controller/railties/helpers.rb
actionpack-5.1.7.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.1.6.2 lib/action_controller/railties/helpers.rb
actionpack-5.0.7.2 lib/action_controller/railties/helpers.rb
actionpack-4.2.11.1 lib/action_controller/railties/helpers.rb
actionpack-5.1.6.1 lib/action_controller/railties/helpers.rb
actionpack-5.0.7.1 lib/action_controller/railties/helpers.rb
actionpack-4.2.11 lib/action_controller/railties/helpers.rb
actionpack-5.1.6 lib/action_controller/railties/helpers.rb
actionpack-5.0.7 lib/action_controller/railties/helpers.rb
actionpack-5.1.5 lib/action_controller/railties/helpers.rb
actionpack-5.1.5.rc1 lib/action_controller/railties/helpers.rb
actionpack-4.2.10 lib/action_controller/railties/helpers.rb
actionpack-4.2.10.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.1.4 lib/action_controller/railties/helpers.rb
actionpack-5.0.6 lib/action_controller/railties/helpers.rb
actionpack-5.1.4.rc1 lib/action_controller/railties/helpers.rb
actionpack-5.0.6.rc1 lib/action_controller/railties/helpers.rb