Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 981 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 981 Bytes

Bongloy's Terms of Service

Build Status

Bongloy's terms of service. Browse here for previous versions and diffs.

Installation

Add this line to your application's Gemfile:

gem 'bongloy-terms'

Usage

To include Bongloy's terms into a Rails application add the following helper method to your ApplicationController

class ApplicationController < ActionController::Base
  helper_method :bongloy_terms_renderer

  def bongloy_terms_renderer
    @bongloy_terms_renderer ||= Bongloy::Terms::Renderer.new
  end
end

Then you can use it in your views like

  <%= bongloy_terms_renderer.render('terms').html_safe %>
  <%= bongloy_terms_renderer.render('privacy').html_safe %>
  <%= bongloy_terms_renderer.render('prohibited_businesses').html_safe %>
  <%= bongloy_terms_renderer.render('high_risk_mcc_categories').html_safe %>