diff options
Diffstat (limited to 'railties/lib/generators/base.rb')
-rw-r--r-- | railties/lib/generators/base.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/generators/base.rb b/railties/lib/generators/base.rb index 30f138c62a..c1acd4c94f 100644 --- a/railties/lib/generators/base.rb +++ b/railties/lib/generators/base.rb @@ -6,15 +6,15 @@ module Rails end class Base < Thor::Group - include Rails::Generators::Actions - include Thor::Actions - # Automatically sets the source root based on the class name. # def self.source_root - @_rails_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), base_name, generator_name, 'templates')) + File.expand_path(File.join(File.dirname(__FILE__), base_name, generator_name, 'templates')) end + include Thor::Actions + include Rails::Generators::Actions + # Tries to get the description from a USAGE file one folder above the source # root otherwise uses a default description. # |