Skip to content

Instantly share code, notes, and snippets.

View rahearn's full-sized avatar

Ryan Ahearn rahearn

  • 18F (work) + personal projects
  • Baltimore, MD
View GitHub Profile
@rahearn
rahearn / activeadmin-cancan.rb
Last active December 12, 2015 06:58
ActiveAdmin & CanCan integration. Works with `check_authorization` in ApplicationController
# blog post:
# Before using this initializer, you must set up Cancan. First, add the gem to your Gemfile:
#
# gem 'cancan'
#
# Next, generate and edit an Ability class:
#
# rails generate cancan:ability
#