Sha256: 9e146cf01904f3d331a1712f6e5297f59c682b0c10b635cfee7c7bd49bf59ec5

Contents?: true

Size: 188 Bytes

Versions: 13

Compression:

Stored size: 188 Bytes

Contents

module FirstLevelObjectScopes
  extend ActiveSupport::Concern

  module ClassMethods
    def ordered_by_pref_label
      includes(:pref_labels).order('labels.value ASC')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.14.4 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.13.2 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.13.0 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.12.1 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.12.0 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.11.1 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.11.0 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.10.0 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.9.0 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.8.2 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.8.1 app/models/concerns/first_level_object_scopes.rb
iqvoc-4.8.0 app/models/concerns/first_level_object_scopes.rb