lib/atome/genesis/particles/hierarchy.rb in atome-0.5.6.4.0 vs lib/atome/genesis/particles/hierarchy.rb in atome-0.5.6.4.1
- old
+ new
@@ -50,10 +50,9 @@
end
new({ particle: :apply, category: :hierarchy, type: :string, render: false, store: false }) do |parents_ids, &user_proc|
# TODO: optimize the 2 lines below:
# html.reset_background
- # alert :ok
@apply ||= []
parents_ids = [parents_ids] unless parents_ids.instance_of?(Array)
parents_ids.each do |parent_id|
@apply.delete(parent_id)
@apply << parent_id