No clue, but it makes it better

This commit is contained in:
2015-03-01 20:32:44 +01:00
parent 119ee7ddc8
commit 1d5a319d4e
8 changed files with 16 additions and 2 deletions
+5
View File
@@ -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