Commit 229c7a4fd7d5dc3ec7417a537c95b83e641f4ce7
Committed by
Macartur Sousa
1 parent
0e02ad75
Exists in
elasticsearch_api
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 |