lib/deimos/kafka_topic_info.rb in deimos-ruby-1.0.0.pre.beta22 vs lib/deimos/kafka_topic_info.rb in deimos-ruby-1.0.0.pre.beta23
- old
+ new
@@ -64,10 +64,10 @@
record = self.where(topic: topic, locked_by: lock_id).last
attr_hash = { locked_by: nil,
locked_at: Time.zone.now,
error: true,
retries: record.retries + 1 }
- if Rails::VERSION::MAJOR >= 4
+ if ActiveRecord::VERSION::MAJOR >= 4
record.update!(attr_hash)
else
record.update_attributes!(attr_hash)
end
end