Update ecosystem for new devise

This commit is contained in:
2013-09-15 08:51:13 +02:00
parent 748b0c2283
commit ebbb5dedfc
19 changed files with 308 additions and 222 deletions
+3 -2
View File
@@ -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]