Sha256: 93383d52b1437b8b737409c7fb596ea5d0e8c09a345fb0ef459c7a1a7497b670
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
class PropertyType < ActiveRecord::Base self.table_name = "property_types" self.primary_key = 'id' has_many :buying_wishlists, :inverse_of => :property_type has_many :selling_wishlists, :inverse_of => :property_type has_many :renting_wishlists, :inverse_of => :property_type # Get All Property Types def self.get_all_property_types Hash[*PropertyType.pluck(:id, :name).flatten] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
civic311_test3-0.0.2 | app/models/property_type.rb |