af83/chouette-core

View on GitHub
app/lib/policy/permit_all.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Policy
  # Policy which authorizes any action
  class PermitAll < Base
    protected

    def _can?(_action, *_args)
      true
    end
  end
end