1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

rm dead code Slot#can_be_modified?

This commit is contained in:
Nicolas Florentin 2019-12-02 12:32:52 +01:00
parent 90b3564138
commit 6ff6c71060

View File

@ -51,12 +51,6 @@ class Slot < ActiveRecord::Base
attached_object: self
end
def can_be_modified?
return false if (start_at - Time.now) / 1.day < 1
true
end
def dates_were_modified?
start_at_changed? or end_at_changed?
end