af83/chouette-core

View on GitHub
app/policies/policy/line_notice.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Policy
  class LineNotice < Base
    authorize_by Strategy::LineProvider
    authorize_by Strategy::Permission
    authorize_by Strategy::NotUsed, only: %i[destroy]

    alias detach? update?

    protected

    def _update?
      true
    end

    def _destroy?
      true
    end
  end
end