Add section elements

This commit is contained in:
2015-03-01 12:57:20 +01:00
parent 832f80e20e
commit 275b4524bc
62 changed files with 10388 additions and 124 deletions
+17
View File
@@ -0,0 +1,17 @@
class SectionElement
include SimplyStored::Couch
include ActiveModel::SerializerSupport
include SvgElementDefaults
property :position_x, type: Float
property :position_y, type: Float
property :rotation, type: Float
belongs_to :section
belongs_to :supplier
belongs_to :svg_element
view :by_supplier_id, key: :supplier_id
def self.for_supplier(supplier)
find_all_by_supplier_id(supplier.id)
end
end