Sha256: d3bf7bbb7e713723b302d1671e5e2ecad57b4cf679c1f4e3612703d4a92e5b63

Contents?: true

Size: 647 Bytes

Versions: 153

Compression:

Stored size: 647 Bytes

Contents

module ActionController
  module Railties
    module Paths
      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
    end
  end
end

Version data entries

153 entries across 114 versions & 18 rubygems

Version Path
actionpack-3.2.14.rc1 lib/action_controller/railties/paths.rb
swipe-rails-0.0.5 vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/railties/paths.rb
challah-1.0.0.beta3 vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
challah-1.0.0.beta2 vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
challah-1.0.0.beta vendor/bundle/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
challah-1.0.0.beta vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/railties/paths.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb