lib/admino/query/dsl.rb in admino-0.0.4 vs lib/admino/query/dsl.rb in admino-0.0.5
- old
+ new
@@ -3,14 +3,14 @@
module Dsl
def config
@config ||= Admino::Query::Configuration.new
end
- def field(name, options = {})
- config.add_field(name, options)
+ def search_field(name, options = {})
+ config.add_search_field(name, options)
define_method name do
- field_by_name(name).value
+ search_field_by_name(name).value
end
end
def filter_by(name, scopes)
config.add_filter_group(name, scopes)