Skip to content

Instantly share code, notes, and snippets.

View cushingw's full-sized avatar

Cushing Whitney cushingw

  • Laser Thermal
  • Charlottesville, VA
View GitHub Profile
@cushingw
cushingw / ability.rb
Created March 13, 2012 19:38 — forked from watson/ability.rb
Active Admin CanCan integration with shared front/backend User model and multi-level autherization
# app/models/ability.rb
# All front end users are authorized using this class
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
can :read, :all