Files
mozo-backend/app/models/svg_element.rb
T
2015-10-05 18:05:57 +02:00

14 lines
315 B
Ruby

class SvgElement
include SimplyStored::Couch
include ActiveModel::SerializerSupport
include SvgElementDefaults
property :snap_code
property :active, type: :boolean, default: true
property :input_type # %w[raw snap_code]
has_many :section_elements
def self.active
all.select(&:active)
end
end