prey / gdpr_rails

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

terms helper: render_term_for method #20

Closed patriciojofre closed 6 years ago

patriciojofre commented 6 years ago

For use this, TermsHelper must be included in ApplicationController

helper PolicyManager::TermsHelper

then in your template

render_terms_for("age").description

will return the last published term for policy age.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 85


Changes Missing Coverage Covered Lines Changed/Added Lines %
app/helpers/policy_manager/terms_helper.rb 1 3 33.33%
<!-- Total: 1 3 33.33% -->
Totals Coverage Status
Change from base Build 81: -0.2%
Covered Lines: 812
Relevant Lines: 871

💛 - Coveralls