Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Cantango Rails 3 demo app with devise integration
Branch: master
Pull request Compare This branch is even with kristianmandrup:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
features
lib
log
public
script
spec
vendor
.gitignore
.rspec
Gemfile
Gemfile.lock
README.textile
Rakefile
config.ru

README.textile

Cantango Demo

Welcome to the Cantango Rails 3 Demo application!

This demo app aims to demonstrate how to use CanTango in a Rails 3 application.

Integrations

Integrations to be included are:

Engines

The following CanTango engines will be demonstrated, working together:

  • Permissions
  • Permits
  • User AC

Caching

The engines will be executed in the following cache configuration

  • Permissions – Cache
  • Permits – Cache and No Cache
  • User AC – Cache

The No Cache mode for Permits, will allow inclusion of permit rules that can NOT be cached due to dynamic conditional logic surrounding them. Here a very simplistic example to illustrate such a scenario:

def permit_rules
  if the_sky_is_falling?
   can :reach, Sky
  else
   cannot :reach, Sky
  end
end
Something went wrong with that request. Please try again.