Replace string with frozen constant.
This commit is contained in:
parent
56df66b71e
commit
a2c059bc21
|
@ -22,7 +22,10 @@ module Ransack
|
||||||
end
|
end
|
||||||
@context = options[:context] || Context.for(object, options)
|
@context = options[:context] || Context.for(object, options)
|
||||||
@context.auth_object = options[:auth_object]
|
@context.auth_object = options[:auth_object]
|
||||||
@base = Nodes::Grouping.new(@context, options[:grouping] || 'and')
|
@base = Nodes::Grouping.new(
|
||||||
|
@context,
|
||||||
|
options[:grouping] || Ransack::Constants::AND
|
||||||
|
)
|
||||||
@scope_args = {}
|
@scope_args = {}
|
||||||
build(params.with_indifferent_access)
|
build(params.with_indifferent_access)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue