blob: d4b7ecc532a4f3f950a9c69ee845d054517ba670 (
plain) (
tree)
|
|
module Rails
class Engine
module Configurable
def self.included(base)
base.extend ClassMethods
base.delegate :middleware, :root, :paths, :to => :config
end
module ClassMethods
def config
@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
|