Sha256: 7890b275ea30c0248ac5cb268d353ba03812389ab1cd3cb836228dfaf802bd40

Contents?: true

Size: 426 Bytes

Versions: 43

Compression:

Stored size: 426 Bytes

Contents

module Rails
  class Application
    module Configurable
      def self.included(base)
        base.extend ClassMethods
      end

      module ClassMethods
        def inherited(base)
          raise "You cannot inherit from a Rails::Application child"
        end
      end

      def config
        @config ||= Application::Configuration.new(self.class.find_root_with_flag("config.ru", Dir.pwd))
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
railties-3.0.20 lib/rails/application/configurable.rb
railties-3.0.19 lib/rails/application/configurable.rb
railties-3.0.18 lib/rails/application/configurable.rb
railties-3.0.17 lib/rails/application/configurable.rb
railties-3.0.16 lib/rails/application/configurable.rb
railties-3.0.15 lib/rails/application/configurable.rb
railties-3.0.14 lib/rails/application/configurable.rb
railties-3.0.13 lib/rails/application/configurable.rb
railties-3.0.13.rc1 lib/rails/application/configurable.rb
railties-3.0.12 lib/rails/application/configurable.rb
railties-3.0.12.rc1 lib/rails/application/configurable.rb
railties-3.0.11 lib/rails/application/configurable.rb
railties-3.0.10 lib/rails/application/configurable.rb
railties-3.0.10.rc1 lib/rails/application/configurable.rb
railties-3.0.9 lib/rails/application/configurable.rb
railties-3.0.9.rc5 lib/rails/application/configurable.rb
railties-3.0.9.rc4 lib/rails/application/configurable.rb
railties-3.0.9.rc3 lib/rails/application/configurable.rb
railties-3.0.9.rc1 lib/rails/application/configurable.rb
railties-3.0.8 lib/rails/application/configurable.rb