suite
This commit is contained in:
parent
b860d3cbbb
commit
72dd6c7738
@ -34,6 +34,9 @@ class Renew < ActiveRecord::Base
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
true
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
YEAR = 2019
|
YEAR = 2019
|
||||||
@ -49,6 +52,7 @@ class Renew < ActiveRecord::Base
|
|||||||
self.return_done = true
|
self.return_done = true
|
||||||
self.save
|
self.save
|
||||||
else
|
else
|
||||||
|
puts sheet_year.errors.messages
|
||||||
false
|
false
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -18,6 +18,7 @@ class SheetYear < ActiveRecord::Base
|
|||||||
|
|
||||||
before_validation do
|
before_validation do
|
||||||
self.gift_year = false if !self.gift_year
|
self.gift_year = false if !self.gift_year
|
||||||
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -40,6 +41,8 @@ class SheetYear < ActiveRecord::Base
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user