Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the restrict_access_to method would operate essentially identical to
- # a before_filter, I just like how it reads a little better than a before filter
- class PatientsController < ApplicationController
- restrict_access_to [:therapists, :accountants, :practice_admins], :on => :all
- before_filter :check_patient_signoff
- end
- class BillingController < ApplicationController
- restrict_access_to [:receptionists, :accountants], :on => [:show, :index]
- restrict_access_to [:therapists, :pt_assistants], :on => [:create, :edit, :destroy, :new, :update]
- end
Add Comment
Please, Sign In to add comment