af83/chouette-core

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Policy
  class LineReferential < Base
    authorize_by Strategy::Permission

    protected

    def _create?(resource_class)
      [
        ::LineProvider
      ].include?(resource_class)
    end
  end
end