Class: ActsAsRecursiveTree::Options::Values::MultiValue

Inherits:
Base
  • Object
show all
Defined in:
lib/acts_as_recursive_tree/options/values.rb

Direct Known Subclasses

Relation

Instance Attribute Summary

Attributes inherited from Base

#config, #value

Instance Method Summary collapse

Methods inherited from Base

#initialize, #prepared_value

Constructor Details

This class inherits a constructor from ActsAsRecursiveTree::Options::Values::Base

Instance Method Details

#apply_negated_to(attribute) ⇒ Object



54
55
56
# File 'lib/acts_as_recursive_tree/options/values.rb', line 54

def apply_negated_to(attribute)
  attribute.not_in(prepared_value)
end

#apply_to(attribute) ⇒ Object



50
51
52
# File 'lib/acts_as_recursive_tree/options/values.rb', line 50

def apply_to(attribute)
  attribute.in(prepared_value)
end