Add section elements
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
module SvgElementDefaults
|
||||
extend ActiveSupport::Concern
|
||||
included do
|
||||
property :svg
|
||||
property :name
|
||||
property :dpm, type: Float, default: 300
|
||||
property :box_width, type: Float, default: 300
|
||||
property :box_height, type: Float, default: 300
|
||||
validates :dpm, numericality: {greater_than: 0}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user