Sha256: a4d125d94065a5f38ec3589a17706d7a5077d355c83dc435bea6bbd2770c906e

Contents?: true

Size: 351 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

Version Path
api_me-0.8.3 lib/generators/api_me/resource/resource_generator.rb
api_me-0.7.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.8.2 lib/generators/api_me/resource/resource_generator.rb
api_me-0.8.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.8.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.7.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.6.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.5.3 lib/generators/api_me/resource/resource_generator.rb
api_me-0.5.2 lib/generators/api_me/resource/resource_generator.rb
api_me-0.5.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.5.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.4.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.4.0 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.6 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.5 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.4 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.3 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.2 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.1 lib/generators/api_me/resource/resource_generator.rb
api_me-0.3.0 lib/generators/api_me/resource/resource_generator.rb