Dynamic tables

This commit is contained in:
2015-03-01 18:34:57 +01:00
parent d172b28850
commit 119ee7ddc8
9 changed files with 44 additions and 42 deletions
+5 -15
View File
@@ -4,9 +4,11 @@ class Table
per_page_method :limit_value #kaminari
property :number, type: Fixnum, default: 1
property :position_x, type: Float
property :position_y, type: Float
property :needs_help, type: :boolean
property :position_x, type: Float, default: 0
property :position_y, type: Float, default: 0
property :needs_help, type: :boolean, default: false
property :width, type: Float, default: 0.8
property :height, type: Float, default: 0.8
belongs_to :supplier
belongs_to :section
@@ -96,16 +98,4 @@ class Table
def name
number
end
# Method returning the sections table width
def width
2.0
end
def width=(val) end
# Method returning the sections table height
def height
2.0
end
def height=(val) end
end