Sha256: 4706dccf712803a23dff2d3a229fcb8dc9ae5740e38604dc10f5d6c9a5604197
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
require "rails/generators" module Mainstreet class AddressGenerator < Rails::Generators::Base def boom invoke "model", ["Address", "street:string", "street2:string", "city:string", "state:string", "zip_code:string", "latitude:decimal{15.10}", "longitude:decimal{15.10}", "verification_info:text", "original_attributes:text"], options insert_into_file "app/models/address.rb", " acts_as_address\n", after: "ActiveRecord::Base\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mainstreet-0.0.1 | lib/generators/mainstreet/address_generator.rb |