##// END OF EJS Templates
Use attribute writers instead of before_create callback to normalize comments and committer (#14534)....
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

File last commit:

r9351:8d73ddf73ffc
r13514:0bcd5be0a585
Show More
widget.rb
5 lines | 206 B | text/x-ruby | RubyLexer
class Widget < ActiveRecord::Base
acts_as_versioned :sequence_name => 'widgets_seq', :association_options => {
:dependent => :nullify, :order => 'version desc'
}
non_versioned_columns << 'foo'
end