Commit 0cf297a8731e7a646446fa13ef41bc65078c37dc
1 parent
7c5c3678
Exists in
ratings_minor_fixes
and in
3 other branches
article_helper: remove duplicate key in hash
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/article_helper.rb
@@ -187,9 +187,9 @@ module ArticleHelper | @@ -187,9 +187,9 @@ module ArticleHelper | ||
187 | def following_button(page, user) | 187 | def following_button(page, user) |
188 | if !user.blank? and user != page.author | 188 | if !user.blank? and user != page.author |
189 | if page.is_followed_by? user | 189 | if page.is_followed_by? user |
190 | - button :cancel, unfollow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'unfollow_article', :article_id => page.id, :profile => page.profile.identifier} | 190 | + button :cancel, unfollow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :unfollow_article, article_id: page.id} |
191 | else | 191 | else |
192 | - button :add, follow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'follow_article', :article_id => page.id, :profile => page.profile.identifier} | 192 | + button :add, follow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :follow_article, article_id: page.id} |
193 | end | 193 | end |
194 | end | 194 | end |
195 | end | 195 | end |