Project

General

Profile

« Previous | Next » 

Revision 7875f359

Added by Tom Caspy about 9 years ago

fixes #9240 - in case of hash with indifferent access, serialize as hash

(cherry picked from commit 3059cea1c207718217f07b9cdc706bc516f5db1b)

View differences:

app/models/lookup_value.rb
scoped_search :on => :match, :complete_value => true
scoped_search :in => :lookup_key, :on => :key, :rename => :lookup_key, :complete_value => true
def value=(val)
if val.is_a?(HashWithIndifferentAccess)
super(val.deep_to_hash)
else
super
end
end
def name
match
end

Also available in: Unified diff