- Ruby 2.0.0 or higher
- Rails 4.0.0 or higher
- Bootstrap from Twitter
contentr to your Gemfile:
gem 'contentr', github: 'metaminded/contentr'
You'll also want to include
contentr in your CSS
And in your
//= require contentr/contentr
You get three new methods which you should override in your user model:
contentr_authorized? method takes two arguments which are
type is a symbol and either
object is the object for
which an action needs to be authorized.
allowed_to_use_paragraphs? method is used to determine if a user is
allowed to use paragraphs, depending on multiple arguments. The first argument
area, which is a String with the name of the name of the effected area.
If the second parameter
subject is set to a paragraph object
the method should only determine if a user is allowed to use the specified