Ember temp commit

This commit is contained in:
2013-09-24 08:47:30 +02:00
parent ebbb5dedfc
commit 5650ada04c
71 changed files with 595 additions and 66 deletions
+7 -2
View File
@@ -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