No clue, but it makes it better
This commit is contained in:
@@ -3,5 +3,10 @@ class SvgElement
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user