diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-24 12:23:21 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-24 12:23:21 +0100 |
commit | e548f96b1d5cb6529dd6fbc6544f03a3a840b48c (patch) | |
tree | 0ef97f5fda65daac5953ac40b87cd32dcc5d9d9f /railties/lib/rails/engine.rb | |
parent | b92608770e20618ab6a6c67099dd19ae4533689e (diff) | |
download | rails-e548f96b1d5cb6529dd6fbc6544f03a3a840b48c.tar.gz rails-e548f96b1d5cb6529dd6fbc6544f03a3a840b48c.tar.bz2 rails-e548f96b1d5cb6529dd6fbc6544f03a3a840b48c.zip |
Rename plugin_name to railtie_name and engine_name.
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 6f724963b2..842785875a 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -9,6 +9,9 @@ module Rails class << self attr_accessor :called_from + alias :engine_name :railtie_name + alias :engine_names :railtie_names + def inherited(base) unless abstract_railtie?(base) base.called_from = begin |