Guest User

Untitled

a guest
Nov 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def self.update_points
  2. p = Point.all
  3. p.each do |ap|
  4. loc = Deal.find(ap.cpnId)
  5. ap.title = "#{loc.ctitle}"
  6. ap.full_address = "#{loc.get_addr}"
  7. ap.summary = "#{loc.csummary}"
  8. ap.detail = "#{loc.cdetail}"
  9. ap.price = "#{loc.startprice}"
  10. ap.save
  11. end
  12. end
Add Comment
Please, Sign In to add comment