mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
23 lines
412 B
Ruby
23 lines
412 B
Ruby
module Rails
|
|
class Railtie
|
|
module Configurable
|
|
def self.included(base)
|
|
base.extend ClassMethods
|
|
end
|
|
|
|
module ClassMethods
|
|
def config
|
|
@config ||= 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
|