Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Rails API Gem

sethvargo edited this page Sep 28, 2012 · 1 revision

If you're using the rails-api gem, you'll need to manually include the controller methods for CanCan

class ApplicationController < ActionController::API
  include CanCan::ControllerAdditions
end

You can then use CanCan as usual.