Update ecosystem for new devise
This commit is contained in:
@@ -3,7 +3,7 @@ class Section
|
||||
include Qwaiter::Distribution
|
||||
|
||||
property :title
|
||||
property :path, type: Array, default: []
|
||||
property :path, type: Array, default: [[0.0, 0.0], [20.0, 30.0]] # default width 20m height 30m
|
||||
|
||||
belongs_to :supplier
|
||||
has_many :tables
|
||||
@@ -46,10 +46,11 @@ class Section
|
||||
self.path[0] ||= [0.0, 0.0]
|
||||
self.path[1] ||= [0.0, 0.0]
|
||||
unless path[1][0] == val
|
||||
self.path[1][0] = val
|
||||
self.path[1][0] = val
|
||||
path_will_change!
|
||||
end
|
||||
end
|
||||
|
||||
def height=(val)
|
||||
val = val.to_f
|
||||
self.path[0] ||= [0.0, 0.0]
|
||||
|
||||
Reference in New Issue
Block a user