Merge pull request #248 from shioyama/rails4

update deprecated Relation#update_all with conditions to new format.
fix typo (name a variable, not :name a symbol) and change locale assignment to boolean