Permalink
Browse files

Merge pull request #7 from yabawock/rails-3.2

InstanceMethods are deprecated in Rails 3.2
  • Loading branch information...
2 parents d60bfd1 + 08e27fb commit 8dad5fbd2da6a9766da412be57678df30aaa5a22 @alexrothenberg committed Dec 28, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/ammeter/rspec/generator/example/generator_example_group.rb
@@ -41,12 +41,10 @@ def run_generator(given_args=self.default_arguments, config={})
end
end
- module InstanceMethods
- def invoke_task name
- capture(:stdout) { generator.invoke_task(generator_class.all_tasks[name.to_s]) }
- end
+ def invoke_task name
+ capture(:stdout) { generator.invoke_task(generator_class.all_tasks[name.to_s]) }
end
-
+
included do
delegate :generator, :run_generator, :destination, :arguments, :to => :'self.class'
DELEGATED_METHODS.each do |method|

0 comments on commit 8dad5fb

Please sign in to comment.