diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-11-02 17:12:01 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-11-02 17:12:01 -0800 |
commit | 14370e1aab6ddfb5b86cf50bd7e5abcebae0684c (patch) | |
tree | 431146dfb0b15c4507fd49bb7d6f18bd40ccf839 /railties/lib/rails | |
parent | 976c2647240fd40a2b706ab5e41856cd47e7b212 (diff) | |
download | rails-14370e1aab6ddfb5b86cf50bd7e5abcebae0684c.tar.gz rails-14370e1aab6ddfb5b86cf50bd7e5abcebae0684c.tar.bz2 rails-14370e1aab6ddfb5b86cf50bd7e5abcebae0684c.zip |
CI breakage
This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/base.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/railties/lib/rails/generators/base.rb b/railties/lib/rails/generators/base.rb index e6baf2fc79..7af99797ea 100644 --- a/railties/lib/rails/generators/base.rb +++ b/railties/lib/rails/generators/base.rb @@ -12,16 +12,6 @@ module Rails add_runtime_options! - # Always move to rails source root. - # - def initialize(*args) #:nodoc: - if !invoked?(args) && defined?(Rails.root) && Rails.root - self.destination_root = Rails.root - FileUtils.cd(destination_root) - end - super - end - # Automatically sets the source root based on the class name. # def self.source_root @@ -257,13 +247,6 @@ module Rails end end - # Check if this generator was invoked from another one by inspecting - # parameters. - # - def invoked?(args) - args.last.is_a?(Hash) && args.last.key?(:invocations) - end - # Use Rails default banner. # def self.banner |