module EasyOrderable

Constants

VERSION

Public Instance Methods

assort(arg, custom_association_names=nil) click to toggle source
# File lib/easy_orderable.rb, line 9
def assort(arg, custom_association_names=nil)
  return current_scope unless arg

  parsed_args = Parser.new(arg.delete(' ')).call
  Assorter.new(current_scope, parsed_args, custom_association_names).call
end