13 lines
272 B
Ruby
13 lines
272 B
Ruby
class SvgElement
|
|
include SimplyStored::Couch
|
|
include ActiveModel::SerializerSupport
|
|
include SvgElementDefaults
|
|
property :snap_code
|
|
property :active, type: :boolean, default: true
|
|
has_many :section_elements
|
|
|
|
def self.active
|
|
all.select(&:active)
|
|
end
|
|
end
|