OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t#31538:fix default value
[pettanr/pettanr.git]
/
app
/
models
/
ground_color.rb
diff --git
a/app/models/ground_color.rb
b/app/models/ground_color.rb
index
95a80ff
..
8ed6a30
100644
(file)
--- a/
app/models/ground_color.rb
+++ b/
app/models/ground_color.rb
@@
-17,7
+17,7
@@
class GroundColor < ActiveRecord::Base
end
def supply_default
- self.code = 0
+ self.code
||
= 0
if self.panel
self.t = self.panel.new_t
self.z = self.panel.new_z