Skip to content
Browse files

InstanceMethods are deprecated in Rails 3.2

  • Loading branch information...
1 parent d60bfd1 commit 08e27fbcd2e710f2129f65e1dac1047eb70542ee @yabawock yabawock committed Dec 26, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/ammeter/rspec/generator/example/generator_example_group.rb
View
8 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 08e27fb

Please sign in to comment.
Something went wrong with that request. Please try again.