Sha256: 52dbcf3351f550ff42b4be8e5d77c622031e6508e32dfead271cea29894dbd5b

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

class Maestrano::Connector::Rails::SynchronizationPolicy < Maestrano::Connector::Rails::ApplicationPolicy
  class Scope < Scope
    def resolve
      scope.includes(:organization).where('organizations.tenant': user)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.6 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.5 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.4 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.3 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.2 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.1 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.3.0 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.2.1 app/policies/maestrano/connector/rails/synchronization_policy.rb
maestrano-connector-rails-2.2.0 app/policies/maestrano/connector/rails/synchronization_policy.rb