Bongloy's Terms
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/bongloy
spec
.gitignore
.rspec
.travis.yml
Gemfile
README.md
Rakefile
bongloy-terms.gemspec
kh_fees_taxes.en.md
kh_high_risk_mcc_categories.en.md
kh_privacy.en.md
kh_prohibited_businesses.en.md
kh_terms.en.md

README.md

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 %>