Sha256: abe77999e5bbe441eac6541ebb7b562f62e3c88e1486f10088c8d30a663bc4ad

Contents?: true

Size: 382 Bytes

Versions: 13

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

module ApiMe
  module Generators
    class ResourceGenerator < Rails::Generators::Base
      def run_generators
        params = @_initializer[0]
        invoke 'model', params
        invoke 'serializer', params + %w[created_at updated_at]
        invoke 'api_me:policy', params
        invoke 'api_me:controller', params
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
api_me-0.14.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.14.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.13.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.12.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.11.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.7 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.6 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.5 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.4 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.3 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.2 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.10.0 lib/generators/api_me/resource/resource_generator.rb