mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +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
|
attached_object: self
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_be_modified?
|
|
||||||
return false if (start_at - Time.now) / 1.day < 1
|
|
||||||
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
def dates_were_modified?
|
def dates_were_modified?
|
||||||
start_at_changed? or end_at_changed?
|
start_at_changed? or end_at_changed?
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user