Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SmartUrlHelper.configure do |url|
- url.for ->model{ model.is_a?(Comment) } do |helpers, model|
- helpers.post_comment_path(model.post, model)
- end
- # TODO: Add a convenience method for matching on type:
- # url.for(Comment) do |helpers, model|
- # helpers.post_comment_path(model.post, model)
- # end
- end
Add Comment
Please, Sign In to add comment