lib/admino/query/dsl.rb in admino-0.0.1 vs lib/admino/query/dsl.rb in admino-0.0.2

- old
+ new

@@ -15,9 +15,14 @@ def group(name, scopes) config.add_group(name, scopes) end + def sorting(*args) + options = args.extract_options! + config.add_sorting_scopes(args, options) + end + def starting_scope(&block) config.starting_scope_callable = block end def ending_scope(&block)