lib/admino/query/sorting.rb in admino-0.0.2 vs lib/admino/query/sorting.rb in admino-0.0.3
- old
+ new
@@ -47,11 +47,15 @@
def default_scope
config.default_scope
end
+ def default_direction
+ config.default_direction
+ end
+
def default_direction_is_ascending?
- config.default_direction != :desc
+ default_direction != :desc
end
def param_value
params.fetch(param_name, nil)
end