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.20 lib/rails/railtie/configurable.rb
railties-3.0.19 lib/rails/railtie/configurable.rb
railties-3.0.18 lib/rails/railtie/configurable.rb
railties-3.0.17 lib/rails/railtie/configurable.rb
railties-3.0.16 lib/rails/railtie/configurable.rb
railties-3.0.15 lib/rails/railtie/configurable.rb
railties-3.0.14 lib/rails/railtie/configurable.rb
railties-3.0.13 lib/rails/railtie/configurable.rb
railties-3.0.13.rc1 lib/rails/railtie/configurable.rb
railties-3.0.12 lib/rails/railtie/configurable.rb
railties-3.0.12.rc1 lib/rails/railtie/configurable.rb
railties-3.0.11 lib/rails/railtie/configurable.rb
railties-3.0.10 lib/rails/railtie/configurable.rb
railties-3.0.10.rc1 lib/rails/railtie/configurable.rb
railties-3.0.9 lib/rails/railtie/configurable.rb
railties-3.0.9.rc5 lib/rails/railtie/configurable.rb
railties-3.0.9.rc4 lib/rails/railtie/configurable.rb
railties-3.0.9.rc3 lib/rails/railtie/configurable.rb
railties-3.0.9.rc1 lib/rails/railtie/configurable.rb
railties-3.0.8 lib/rails/railtie/configurable.rb