Sha256: 56ffff366c683587c9776669c6395cc5133066dec248985bdabf26234cb5094a
Contents?: true
Size: 236 Bytes
Versions: 11
Compression:
Stored size: 236 Bytes
Contents
module Spina module Partable def part(part) part = parts.where(name: part[:name]).first || parts.build(part) part.partable = part.partable_type.constantize.new unless part.partable.present? part end end end
Version data entries
11 entries across 11 versions & 1 rubygems