daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Sep 20th, 2018 74 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. SmartUrlHelper.configure do |url|
  2.   url.for ->model{ model.is_a?(Comment) } do |helpers, model|
  3.     helpers.post_comment_path(model.post, model)
  4.   end
  5.  
  6.   # TODO: Add a convenience method for matching on type:
  7.   # url.for(Comment) do |helpers, model|
  8.   #   helpers.post_comment_path(model.post, model)
  9.   # end
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top