Flowdock
method

with

Importance_0
v3.2.1 - Show latest stable - 0 notes - Class: Paths
with(app) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/railties/paths.rb, line 4
      def self.with(app)
        Module.new do
          define_method(:inherited) do |klass|
            super(klass)

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

            klass.helpers_path = paths

            if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers
              klass.helper :all
            end
          end
        end
      end
Register or log in to add new notes.