af83/chouette-core

View on GitHub
app/policies/concerns/policy/documentable.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Policy
  module Documentable
    extend ActiveSupport::Concern

    protected

    def _create?(resource_class)
      if resource_class == ::DocumentMembership
        apply_strategies(:update)
      else
        super
      end
    end
  end
end