fix a bug when updating indexed fields

This commit is contained in:
Sami Samhuri 2012-02-15 21:11:24 -08:00
parent 4c1f662919
commit 02cc484372
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ module Stormy
fields = params.merge({
'email_verified' => email_changed ? true : @account.email_verified
})
# TODO slice valid field names instead of removing the outliers
fields.delete('splat')
fields.delete('captures')
fields.delete('email')

View file

@ -631,7 +631,7 @@ module Stormy
end
def update_indexed_field(name, value)
value = value.strip
value = value.to_s.strip
orig = send(name)
if orig != value
changed = orig.downcase != value.downcase