Sha256: 20ded8b88fef9fe1b3699cc4b50838cbbaa999d1d8bdf1bc470af212f12ce47a

Contents?: true

Size: 255 Bytes

Versions: 9

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

class Maestrano::Connector::Rails::IdMapPolicy < 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/id_map_policy.rb
maestrano-connector-rails-2.3.5 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.3.4 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.3.3 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.3.2 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.3.1 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.3.0 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.2.1 app/policies/maestrano/connector/rails/id_map_policy.rb
maestrano-connector-rails-2.2.0 app/policies/maestrano/connector/rails/id_map_policy.rb