Sha256: 8a11f4fb603848d031044b2aa7a94cef07914e2c31ba524548f0371e9c5b1614

Contents?: true

Size: 421 Bytes

Versions: 43

Compression:

Stored size: 421 Bytes

Contents

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

      module ClassMethods
        def config
          @config ||= Railtie::Configuration.new
        end

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

      def config
        self.class.config
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
railties-3.0.8.rc4 lib/rails/railtie/configurable.rb
railties-3.0.8.rc2 lib/rails/railtie/configurable.rb
railties-3.0.8.rc1 lib/rails/railtie/configurable.rb
railties-3.0.7 lib/rails/railtie/configurable.rb
railties-3.0.7.rc2 lib/rails/railtie/configurable.rb
railties-3.0.7.rc1 lib/rails/railtie/configurable.rb
railties-3.0.6 lib/rails/railtie/configurable.rb
railties-3.0.6.rc2 lib/rails/railtie/configurable.rb
railties-3.0.6.rc1 lib/rails/railtie/configurable.rb
railties-3.0.5 lib/rails/railtie/configurable.rb
railties-3.0.5.rc1 lib/rails/railtie/configurable.rb
railties-3.0.4 lib/rails/railtie/configurable.rb
railties-3.0.4.rc1 lib/rails/railtie/configurable.rb
railties-3.0.3 lib/rails/railtie/configurable.rb
railties-3.0.2 lib/rails/railtie/configurable.rb
railties-3.0.1 lib/rails/railtie/configurable.rb
railties-3.0.0 lib/rails/railtie/configurable.rb
railties-3.0.0.rc2 lib/rails/railtie/configurable.rb
railties-3.0.0.rc lib/rails/railtie/configurable.rb
railties-3.0.0.beta4 lib/rails/railtie/configurable.rb