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:
parent
90b3564138
commit
6ff6c71060
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user