Dynamic tables
This commit is contained in:
+5
-15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user