Sha256: 296ac96d57b42ebb1820eb2a087135e186e0db4bb6e495828a785cce333c2037
Contents?: true
Size: 277 Bytes
Versions: 1
Compression:
Stored size: 277 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lead_management-0.1.5 | lib/generators/lead_model_generator.rb |