Sha256: 0c36f317d64469b6a79630ac6f7de04bf2642e7a90ca002edce7c8f10a0e6166

Contents?: true

Size: 604 Bytes

Versions: 12

Compression:

Stored size: 604 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_property_features_listings', :dependent => :destroy

    # Validation for Form Fields
    validates :property_feature_name,
      presence: true

    # Clean URL Define
    friendly_id :property_feature_nice_urls, use: [:slugged, :finders]

    def property_feature_nice_urls
      [:property_feature_name]
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
phcdevworks_real_estate-5.1.1 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.1.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.5 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.4 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.3 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.2 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.1 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-5.0.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-4.3.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-4.2.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-4.1.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-4.0.0 app/models/phcdevworks_real_estate/property/feature.rb