Sha256: d87fc2fe3651a2188bd1e31486699bbcb64a0d84217e90a1085dffa3ecb3cf8f
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
module PhcdevworksMembers class Member::Address < ApplicationRecord # Clean URL Initialize extend FriendlyId # Paper Trail Initialize has_paper_trail :class_name => 'PhcdevworksMembers::AddressVersions' # Relationships belongs_to :profile, class_name: 'PhcdevworksMembers::Member::Profile' # Form Fields Validation validates :address_line_1, presence: true validates :address_city, presence: true validates :address_province, presence: true validates :address_country, presence: true validates :address_postal_code, presence: true # Clean URL Define friendly_id :phcdev_members_address_nice_urls, use: [:slugged, :finders] def phcdev_members_address_nice_urls [ [:address_type, :address_city, :address_province] ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_members-4.0.1 | app/models/phcdevworks_members/member/address.rb |
phcdevworks_members-4.0.0 | app/models/phcdevworks_members/member/address.rb |