Guest User

Untitled

a guest
May 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def tag_names
  2. @tag_names || tags.map(&:name).join(' ')
  3. end
  4.  
  5. class Symbol
  6. def to_proc
  7. Proc.new do |obj, *args|
  8. obj.send self, *args
  9. end
  10. end
  11. end
  12.  
  13. def tag_names
  14. @tag_names || tags.map { |tag| tag.name }.join(' ')
  15. end
Add Comment
Please, Sign In to add comment