search for: update_without_dirty

Displaying 3 results from an estimated 3 matches for "update_without_dirty".

2009 Aug 15
4
Isn't there any performance issue when saving serialized attributes every time?
In edge rails, serialized attributes are saved every time no matter they are changed or not: def update_with_dirty if partial_updates? # Serialized attributes should always be written in case they''ve been # changed in place. update_without_dirty(changed | (attributes.keys & self.class.serialized_attributes.keys)) else update_without_dirty end end In out app, User model has a serialized attribute friend_ids, which is the id array of the user''s friends (used to be a friendships table, but...
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to 2.2.2. I am almost there but I have hit a problem with ActiveRecord. Before the upgrade, the following code was working fine. def create_root(administrator) root = create_root_collection(self.pingee_name, administrator,
2009 Apr 01
1
Erro de update no rails 2.3.2
...tiverecord-2.3.2/lib/active_record/ base.rb:2875:in `attributes_with_quotes'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2875:in `update_without_lock'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ locking/optimistic.rb:81:in `update_without_dirty'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ dirty.rb:146:in `update_without_timestamps'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ timestamp.rb:38:in `update_without_callbacks'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord...