aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/decorators/models/sidebar_post_decorator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/models/sidebar_post_decorator.rb b/app/decorators/models/sidebar_post_decorator.rb
index 14cbe7c..c6f10d5 100644
--- a/app/decorators/models/sidebar_post_decorator.rb
+++ b/app/decorators/models/sidebar_post_decorator.rb
@@ -9,7 +9,7 @@ class SidebarPostDecorator < SimpleDelegator
end
def title
- content_tag(:h2, super)
+ content_tag(:h2, link_to(super, __getobj__.friendly_id))
end
def body