Sha256: 6c2cfcdddc559b4f4e1abc59205b09760dc54a0899ed9d672804d19941001835
Contents?: true
Size: 359 Bytes
Versions: 50
Compression:
Stored size: 359 Bytes
Contents
module Jsonapi class ResourceGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_resource template_file = File.join( 'app/resources', class_path, "#{file_name.singularize}_resource.rb" ) template 'jsonapi_resource.rb', template_file end end end
Version data entries
50 entries across 50 versions & 1 rubygems