Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def attributes
- [:latitude, :longitude, :street, :locality, :region, :postal_code, :country, :precision].inject({}) do |result,attr|
- result[attr] = self.send(attr) unless self.send(attr).blank?
- result
- end
Add Comment
Please, Sign In to add comment