Skip to content

Commit

Permalink
always write serialized LOB columns #275
Browse files Browse the repository at this point in the history
  • Loading branch information
substars authored and yahonda committed Jan 26, 2013
1 parent 0fdeb26 commit f50aa48
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def enhanced_write_lobs #:nodoc:
end
end
def record_changed_lobs
@changed_lob_columns = self.class.lob_columns.select{|col| self.send(:"#{col.name}_changed?") && !self.class.readonly_attributes.to_a.include?(col.name) || self.class.serialized_attributes.keys && !self.class.readonly_attributes.to_a.include?(col.name)}
@changed_lob_columns = self.class.lob_columns.select do |col|
self.class.serialized_attributes.keys.include?(col.name) ||
(self.send(:"#{col.name}_changed?") && !self.class.readonly_attributes.to_a.include?(col.name))
end
end
private :enhanced_write_lobs
private :record_changed_lobs
Expand Down

0 comments on commit f50aa48

Please sign in to comment.