Class: HasHelpers::DataMigration::Model
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HasHelpers::DataMigration::Model
- Defined in:
- lib/has_helpers/data_migration/model.rb
Instance Method Summary collapse
Instance Method Details
#exceeded_expected_duration? ⇒ Boolean
8 9 10 11 |
# File 'lib/has_helpers/data_migration/model.rb', line 8 def exceeded_expected_duration? return false if started_at.blank? (Time.zone.now - started_at) > klass.expected_duration end |
#klass ⇒ Object
13 14 15 |
# File 'lib/has_helpers/data_migration/model.rb', line 13 def klass @klass ||= class_name.safe_constantize end |