Permalink
Browse files

Refactor app and plugin generators to use new Thor API

  • Loading branch information...
1 parent a5311ee commit 9cb9713eebd786bd5113470af67b6c81bb57986e @drogus committed Oct 29, 2010
View
12 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -177,9 +177,7 @@ def initialize(*args)
end
end
- def create_root
- super
- end
+ public_task :create_root
def create_root_files
build(:readme)
@@ -258,13 +256,7 @@ def finish_template
build(:leftovers)
end
- def apply_rails_template
- super
- end
-
- def bundle_if_dev_or_edge
- super
- end
+ public_task :apply_rails_template, :bundle_if_dev_or_edge
protected
View
12 railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
@@ -115,9 +115,7 @@ def initialize(*args)
super
end
- def create_root
- super
- end
+ public_task :create_root
def create_root_files
build(:readme)
@@ -168,13 +166,7 @@ def finish_template
build(:leftovers)
end
- def apply_rails_template
- super
- end
-
- def bundle_if_dev_or_edge
- super
- end
+ public_task :apply_rails_template, :bundle_if_dev_or_edge
protected

0 comments on commit 9cb9713

Please sign in to comment.