]> source.dussan.org Git - redmine.git/commit
Use attribute writers instead of before_create callback to normalize comments and...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 18 Jan 2015 11:43:58 +0000 (11:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 18 Jan 2015 11:43:58 +0000 (11:43 +0000)
commit0bcd5be0a585e835b04e6e88e69a87d5d94daf45
tree2b359e49d203dff84d4856999cd694e736e07ad3
parent886b9c14d0cb16e5ae132bdea545ddea771f7284
Use attribute writers instead of before_create callback to normalize comments and committer (#14534).

Unlike other adapters, SQLite raises Encoding::UndefinedConversionError before the callback that reencodes attributes is called.

git-svn-id: http://svn.redmine.org/redmine/trunk@13896 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/changeset.rb