Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tag_names
- @tag_names || tags.map(&:name).join(' ')
- end
- class Symbol
- def to_proc
- Proc.new do |obj, *args|
- obj.send self, *args
- end
- end
- end
- def tag_names
- @tag_names || tags.map { |tag| tag.name }.join(' ')
- end
Add Comment
Please, Sign In to add comment