Sha256: 82801c20c68130f876dff971eb87b988e834319e8f88ed737185194ab84660d6
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module Jsonapi class ControllerGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_resource template_file = File.join( 'app/controllers', class_path, "#{file_name.pluralize}_controller.rb" ) template 'jsonapi_controller.rb', template_file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapi-resources-0.11.0.beta2 | lib/generators/jsonapi/controller_generator.rb |