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

- old
+ new

@@ -1,11 +1,14 @@ require "rails/generators" +require "rails/generators/rails/model/model_generator" require "rails/generators/rails/resource/resource_generator" module Rails module Generators - class ResourceGenerator - hook_for :resource_template, default: true do |template| + class ResourceGenerator < ModelGenerator + include ResourceHelpers + + hook_for :resource_template, :default => true do |template| invoke template, [ controller_name, options[:actions] ] end end end end