Guest User

Untitled

a guest
Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def attributes
  2. [:latitude, :longitude, :street, :locality, :region, :postal_code, :country, :precision].inject({}) do |result,attr|
  3. result[attr] = self.send(attr) unless self.send(attr).blank?
  4. result
  5. end
Add Comment
Please, Sign In to add comment