app/models/study_engine/assessment.rb in study_engine-0.1.1 vs app/models/study_engine/assessment.rb in study_engine-0.2.0
- old
+ new
@@ -5,11 +5,17 @@
class Assessment < ActiveRecord::Base
cattr_accessor(:timeout_interval) { 10.minutes }
default_scope -> { includes(:persisted_results) }
+ # Rails 5.1
+ def self.timestamp_attributes_for_create
+ super + ["assessment_updated_at"]
+ end
+
+ # Rails 5.0
def timestamp_attributes_for_create
- super + [:assessment_updated_at]
+ super + ["assessment_updated_at"]
end
def self.by_event event
where(event: event)
end