Sha256: ee3ebc5436c96da3f98fec3acd85ac0c196efe46b63cc332b2440d715a4e9f5d

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators/rails/resource_route/resource_route_generator'
require 'rails/generators/resource_helpers'
require 'generators/aws_record/active_model'

module AwsRecord
  module Generators
    class ResourceGenerator < ModelGenerator
      include Rails::Generators::ResourceHelpers

      hook_for :resource_route, in: :rails, required: true

      private

      def orm_class
        @orm_class = AwsRecord::Generators::ActiveModel
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-record-rails-0.2.0 lib/generators/aws_record/resource/resource_generator.rb
aws-record-rails-0.1.0 lib/generators/aws_record/resource/resource_generator.rb