Module: CommentsHelper
- Defined in:
- app/helpers/comments_helper.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) commentable_show_path(commentable = nil)
5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/comments_helper.rb', line 5 def commentable_show_path(commentable=nil) commentable ||= @commentable case(commentable.class) when Posting blog_posting_path(commentable.blog,commentable) else eval( "#{commentable.class.to_s.underscore}_path(commentable)") end end |