Ember temp commit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class Section
|
||||
include SimplyStored::Couch
|
||||
include Qwaiter::Distribution
|
||||
include ActiveModel::SerializerSupport
|
||||
|
||||
property :title
|
||||
property :path, type: Array, default: [[0.0, 0.0], [20.0, 30.0]] # default width 20m height 30m
|
||||
@@ -61,10 +62,14 @@ class Section
|
||||
end
|
||||
end
|
||||
|
||||
def as_json
|
||||
super.merge(width: width, height: height)
|
||||
def tables_with_active_list_id
|
||||
Table.enrich_active_list_id(tables)
|
||||
end
|
||||
|
||||
#def as_json(*)
|
||||
#super.merge(width: width, height: height)
|
||||
#end
|
||||
|
||||
def for_tables_as_json
|
||||
return @for_tables_as_json if @for_tables_as_json.present?
|
||||
h = as_json
|
||||
|
||||
Reference in New Issue
Block a user