class Para::ModelFieldParsers::ClosureTree

Public Instance Methods

applicable?() click to toggle source
# File lib/para/model_field_parsers/closure_tree.rb, line 10
def applicable?
  model.respond_to? :roots
end
parse!() click to toggle source
# File lib/para/model_field_parsers/closure_tree.rb, line 6
def parse!
  hidden_fields.each(&fields_hash.method(:delete))
end

Private Instance Methods

hidden_fields() click to toggle source
# File lib/para/model_field_parsers/closure_tree.rb, line 16
def hidden_fields
  [
    :ancestor_hierarchies,
    :self_and_ancestors,
    :descendant_hierarchies,
    :self_and_descendants
  ]
end