Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.update_points
- p = Point.all
- p.each do |ap|
- loc = Deal.find(ap.cpnId)
- ap.title = "#{loc.ctitle}"
- ap.full_address = "#{loc.get_addr}"
- ap.summary = "#{loc.csummary}"
- ap.detail = "#{loc.cdetail}"
- ap.price = "#{loc.startprice}"
- ap.save
- end
- end
Add Comment
Please, Sign In to add comment