Skip to content

Commit 7fcd8ad

Browse files
committed
Updates arel call to arel 6.0.0
1 parent 7bf1256 commit 7fcd8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cms/behaviors/publishing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def publish!
145145
end
146146

147147
# 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)
148+
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)
149149
did_publish = true
150150
end
151151
else

0 commit comments

Comments
 (0)