Sha256: 6e1d3f3979cdcafbda945b89e7b6ab8754115ad6fad18d2ec4d68e3cbdd983fe
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
class Address < ActiveRecord::Base belongs_to :user belongs_to :country belongs_to :state validates_presence_of :firstname validates_presence_of :lastname validates_presence_of :address1 validates_presence_of :city validates_presence_of :state validates_presence_of :zipcode validates_presence_of :country validates_presence_of :phone def full_name self.firstname + " " + self.lastname end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree-0.2.0 | app/models/address.rb |