1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/railtie/configurable.rb

24 lines
421 B
Ruby
Raw Normal View History

module Rails
class Railtie
module Configurable
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def config
2010-01-23 16:30:17 -05:00
@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