Sha256: f3df8f12f6a2dbedd2abdf071cb7d22c2f6302ec97133497d688fc287245a34f
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
require 'active_support/concern' module Georgia module Concerns module Treeable extend ActiveSupport::Concern included do has_ancestry orphan_strategy: :rootify end module ClassMethods def update_tree(tree) tree.each do |id, attributes| update(id, attributes) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.8.0 | app/models/georgia/concerns/treeable.rb |