Sha256: 8d5348098bc9aa35677fa9d47e74a5f54cf173f7951de5e94cff1c08de3e7c93
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
module PhcdevworksRealEstate class Property::Feature < ApplicationRecord # Clean URL Initialize extend FriendlyId # Relationships has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'features_listings' # Validation for Form Fields validates :feature_name, presence: true # Clean URL Define friendly_id :phcdev_property_feature_nice_urls, use: [:slugged, :finders] def phcdev_property_feature_nice_urls [:feature_name] end end end
Version data entries
4 entries across 4 versions & 1 rubygems