class ActiveTree::Query
Public Instance Methods
valid?(attribute, value)
click to toggle source
# File lib/active_tree/queries/active_tree_query.rb, line 2 def valid?(attribute, value) return false if !attribute.is_a? Symbol return false if value.nil? || value.empty? || !value.present? return valse if [ "", [], ["0"], [ 0 ], "all", "any" ].include? value return true end