Sha256: b8adb3ff4216e2da0611045e00b1c751cb028c113bdc99d43ff915eae42815b0
Contents?: true
Size: 567 Bytes
Versions: 15
Compression:
Stored size: 567 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 => 'phcdevworks_real_estate_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
15 entries across 15 versions & 1 rubygems