Flowdock
method

call

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: RangeHandler
call(attribute, value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/predicate_builder/range_handler.rb, line 12
      def call(attribute, value)
        begin_bind = predicate_builder.build_bind_attribute(attribute.name, value.begin)
        end_bind = predicate_builder.build_bind_attribute(attribute.name, value.end)
        attribute.between(RangeWithBinds.new(begin_bind, end_bind, value.exclude_end?))
      end
Register or log in to add new notes.