Sha256: ab02d319038405f34bb96531e490519f16f134b10917c68f940502ba2fdd63d6

Contents?: true

Size: 399 Bytes

Versions: 114

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware"

module Renalware
  module PatientTransplantScopes
    def with_registration_statuses
      merge(Transplants::Patient.with_registration_statuses)
    end

    def self.extended(base)
      base.ransacker :transplant_registration_status do
        Arel.sql("transplant_registration_status_descriptions.name")
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.1.0 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.167 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.166 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.165 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.164 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.163 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.162 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.161 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.160 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.159 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.158 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.157 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.156 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.155 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.153 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.152 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.151 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.149 app/models/concerns/renalware/patient_transplant_scopes.rb
renalware-core-2.0.148 app/models/concerns/renalware/patient_transplant_scopes.rb