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.0.beta3 lib/rails/railtie/configurable.rb
railties-3.0.0.beta2 lib/rails/railtie/configurable.rb
railties-3.0.0.beta lib/rails/railtie/configurable.rb