noosfero | WIP: Button to sensitive content (!1640)

Rodrigo Souto gitlab at mg.gitlab.com
Wed Nov 28 12:15:12 BRST 2018


Rodrigo Souto started a new discussion on app/controllers/my_profile/cms_controller.rb:

>      end
>    end
>  
> +  def sensitive_content
> +    current_page = params[:page] ? Article.find(params[:page]) : nil

Even though in this case it won't matter, this article selection should be contextualized as a good practice. Something like: `profile.articles.find`.

Change it on the other occurrences below too.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1640#note_120737505
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20181128/b6584495/attachment-0001.html>


More information about the Noosfero-dev mailing list