[Git][noosfero/noosfero][master] article_helper: remove duplicate key in hash

Bráulio Bhavamitra gitlab at mg.gitlab.com
Mon May 23 16:45:47 BRT 2016


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
0cf297a8 by Braulio Bhavamitra at 2016-05-23T16:44:57-03:00
article_helper: remove duplicate key in hash

- - - - -


1 changed file:

- app/helpers/article_helper.rb


Changes:

=====================================
app/helpers/article_helper.rb
=====================================
--- a/app/helpers/article_helper.rb
+++ b/app/helpers/article_helper.rb
@@ -187,9 +187,9 @@ module ArticleHelper
   def following_button(page, user)
     if !user.blank? and user != page.author
       if page.is_followed_by? user
-        button :cancel, unfollow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'unfollow_article', :article_id => page.id, :profile => page.profile.identifier}
+        button :cancel, unfollow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :unfollow_article, article_id: page.id}
       else
-        button :add, follow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'follow_article', :article_id => page.id, :profile => page.profile.identifier}
+        button :add, follow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :follow_article, article_id: page.id}
       end
     end
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/0cf297a8731e7a646446fa13ef41bc65078c37dc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160523/bb498146/attachment-0001.html>


More information about the Noosfero-dev mailing list