There was an error while loading. Please reload this page.
1 parent 7bf1256 commit 7fcd8adCopy full SHA for 7fcd8ad
lib/cms/behaviors/publishing.rb
@@ -145,7 +145,7 @@ def publish!
145
end
146
147
# Doing the SQL ourselves to avoid callbacks
148
- self.class.unscoped.where(self.class.arel_table[self.class.primary_key].eq(id)).arel.update(quoted_attributes)
+ ActiveRecord::Base.connection.execute(self.class.unscoped.where(self.class.arel_table[self.class.primary_key].eq(id)).arel.compile_update(quoted_attributes, id).to_sql)
149
did_publish = true
150
151
else
0 commit comments