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/engine/configurable.rb

25 lines
506 B
Ruby
Raw Normal View History

module Rails
class Engine
module Configurable
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
2010-01-24 06:49:12 -05:00
delegate :middleware, :root, :paths, :to => :config
def config
2010-01-23 16:30:17 -05:00
@config ||= Engine::Configuration.new(find_root_with_flag("lib"))
end
def inherited(base)
raise "You cannot inherit from a Rails::Engine child"
end
end
def config
self.class.config
end
end
end
end