Module: SortIn::ModelExtension::ClassMethods

Defined in:
lib/sort_in/model_extension.rb

Instance Method Summary collapse

Instance Method Details

#where_sort_in(sort_key: nil, **args) ⇒ Object



6
7
8
9
# File 'lib/sort_in/model_extension.rb', line 6

def where_sort_in(sort_key: nil, **args)
  targets = where(args)
  sort_in(targets: targets, args: args, sort_key: sort_key)
end