Class: ActsAsRecursiveTree::Options::Values::RangeValue

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

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



44
45
46
# File 'lib/acts_as_recursive_tree/options/values.rb', line 44

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

#apply_to(attribute) ⇒ Object



40
41
42
# File 'lib/acts_as_recursive_tree/options/values.rb', line 40

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