Sha256: 189d89579a077a0097c0a32d4cda2fb8d8e535e103cf58890ff8a86d137205d7

Contents?: true

Size: 314 Bytes

Versions: 9

Compression:

Stored size: 314 Bytes

Contents

class CabooseRets::SavedProperty < ActiveRecord::Base
  self.table_name = "rets_saved_properties"
  
  belongs_to :user, :class_name => 'Caboose::User'
  attr_accessible :user_id, :mls_number, :date_saved

  def property
    return CabooseRets::Property.where(:mls_number => self.mls_number).first     
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caboose-rets-0.1.151 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.150 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.149 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.148 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.147 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.146 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.145 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.144 app/models/caboose_rets/saved_property.rb
caboose-rets-0.1.143 app/models/caboose_rets/saved_property.rb