Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def message_contains_location?(message)
  2. if attachments = message.attachments
  3. attachments.first['type'] == 'location'
  4. else
  5. false
  6. end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement