checks_access.rb 172 B

123456789
  1. module ApplicationController::ChecksAccess
  2. extend ActiveSupport::Concern
  3. private
  4. def access!(instance, access)
  5. instance.access!(current_user, access)
  6. end
  7. end