This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
For controllers
It works, but I want to write tests before I go deep here. Plus, it’s bedtime. Patience, grasshopper.
Funny how I’m documenting the controller side of acts_as_checkpoint last, when it came first (and is arguably neater)…
In the meantime, here’s an example.
class ProjectController < ApplicationController acts_as_checkpoint :get_user_method => :current_user, :if_denied => :access_denied controller_allows :worker_bee?, :to => [ :index, :show ] controller_allows :manager?, :to => [ :index, :show, :new, :create, :edit, :update ] controller_allows :admin?, :to => [ :index, :show, :destroy ] end






