Guest User

Untitled

a guest
Apr 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # the restrict_access_to method would operate essentially identical to
  2. # a before_filter, I just like how it reads a little better than a before filter
  3.  
  4.  
  5. class PatientsController < ApplicationController
  6. restrict_access_to [:therapists, :accountants, :practice_admins], :on => :all
  7. before_filter :check_patient_signoff
  8. end
  9.  
  10. class BillingController < ApplicationController
  11. restrict_access_to [:receptionists, :accountants], :on => [:show, :index]
  12. restrict_access_to [:therapists, :pt_assistants], :on => [:create, :edit, :destroy, :new, :update]
  13. end
Add Comment
Please, Sign In to add comment