lib/admino/query/dsl.rb in admino-0.0.15 vs lib/admino/query/dsl.rb in admino-0.0.16
- old
+ new
@@ -13,10 +13,14 @@
end
end
def filter_by(name, scopes, options = {})
config.add_filter_group(name, scopes, options)
+
+ define_method name do
+ filter_group_by_name(name).value.to_s
+ end
end
def sorting(*args)
options = args.extract_options!
config.add_sorting_scopes(args, options)
@@ -30,6 +34,5 @@
config.ending_scope_callable = block
end
end
end
end
-