af83/chouette-core

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Policy
  class Aggregate < Base
    authorize_by Strategy::NotCurrentAndSuccessful
    authorize_by Strategy::Permission

    def rollback?
      around_can(:rollback) { true }
    end
  end
end