Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def link_to(*args, &block)
- if block_given?
- args[1] = {:target => '_top'}.merge(args[1] || {})
- else
- args[2] = {:target => '_top'}.merge(args[2] || {})
- end
- super(*args)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement