test/rails/models/task.rb in ruboss4ruby-1.1.1 vs test/rails/models/task.rb in ruboss4ruby-1.1.2

- old
+ new

@@ -1,11 +1,9 @@ class Task < ActiveRecord::Base belongs_to :project belongs_to :location belongs_to :user - - default_methods :is_active - + def is_active case when start_time && end_time (start_time .. end_time) === Time.now when start_time && end_time.nil?