Sha256: 27243e7ad1e0e86ba3eae0cdbab496ce376079cc4fa80ceae2a66bfb823ae112

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module LeadManagement
  module Generators
    class LeadModelGenerator < Rails::Generators::NamedBase
      def create_model
        create_file "#{Rails.root}/app/models/#{file_name}.rb", <<~RUBY
          class #{file_name.capitalize} < ActiveRecord::Base
            
          end
        RUBY
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lead_management-0.1.9 lib/generators/lead_management/lead_model_generator.rb