prey / gdpr_rails

Rails Engine for the GDPR compliance
https://preyproject.com
MIT License
626 stars 62 forks source link

Accessing and rendering terms #19

Closed w8m8 closed 6 years ago

w8m8 commented 6 years ago

Hi, all info related to terms seems to be on a User object @user…. Is there a way to easily render out the terms posted and saved in policy_manager_terms?

The reason why I see this as useful and needed is that you can write your policies in the policy manager, and then show it on your privacy page. Say:

<%= policy_rule_age_content %>

from there it fetches the last and most updated one that is published and shows that.

patriciojofre commented 6 years ago

Hi @almnes, that sounds like a good feature! currently this is not possible but we could do it or you could send a PR with the implementation :-)

patriciojofre commented 6 years ago

@almnes something like this? https://github.com/prey/gdpr_rails/pull/20 🤔

w8m8 commented 6 years ago

@patriciojofre ye #20 pretty intact with what I had in mind.

patriciojofre commented 6 years ago

merged https://github.com/prey/gdpr_rails/pull/20