aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/engine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r--railties/lib/rails/engine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb
index 6b1e21a798..de16c55990 100644
--- a/railties/lib/rails/engine.rb
+++ b/railties/lib/rails/engine.rb
@@ -166,6 +166,7 @@ module Rails
class << self
attr_accessor :called_from
+ alias :engine_name :railtie_name
def inherited(base)
unless base.abstract_railtie?
@@ -201,6 +202,7 @@ module Rails
end
delegate :middleware, :root, :paths, :to => :config
+ delegate :engine_name, :to => "self.class"
def load_tasks
super