Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def any_tags_present?(obj,*tags)
  2. tags ||= %w(person city country other)
  3. tags.any? { |tag| obj.send("#{tag}_list").present? }
  4. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement