Sha256: 40140a0a46ae80f45571f05e0365af2588c4d76b55ca2e46f8039e5d5bb23157

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

require "rails/generators"
require "rails/generators/rails/resource/resource_generator"

module Rails
  module Generators
    class ResourceGenerator
      hook_for :resource_template, default: true  do |template|
        invoke template, [ controller_name, options[:actions] ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rabl-generators-0.1.0 lib/rails/generators/resource_generator.rb