Class: PropertyType

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/property_type.rb

Class Method Summary collapse

Class Method Details

.get_all_property_typesObject

Get All Property Types



11
12
13
# File 'app/models/property_type.rb', line 11

def self.get_all_property_types
  Hash[*PropertyType.pluck(:id, :name).flatten]
end