lib/rails/generators/resource_generator.rb in rabl-generators-0.1.1 vs lib/rails/generators/resource_generator.rb in rabl-generators-0.2.0

- old
+ new

@@ -5,11 +5,11 @@ module Rails module Generators class ResourceGenerator < ModelGenerator include ResourceHelpers - hook_for :resource_template, :default => true do |template| - invoke template, [ controller_name, options[:actions] ] + hook_for :resource_template, :default => true do |generator| + invoke generator, [ controller_name, options[:actions] ] end end end end