Sha256: ef594d42fc77bd1f632f88ed67ef94887977353be5ee33b6720393a35d3b04db

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
api_me-0.9.4 lib/generators/api_me/resource/resource_generator.rb
api_me-0.9.3 lib/generators/api_me/resource/resource_generator.rb
api_me-0.9.2 lib/generators/api_me/resource/resource_generator.rb
api_me-0.9.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.9.0 lib/generators/api_me/resource/resource_generator.rb