Flowdock
method

construct_conditions_from_arguments

Importance_0
v1.1.1 - Show latest stable - 0 notes - Class: ActiveRecord::Base
construct_conditions_from_arguments(attribute_names, arguments) private

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/base.rb, line 1145
        def construct_conditions_from_arguments(attribute_names, arguments)
          conditions = []
          attribute_names.each_with_index { |name, idx| conditions << "#{table_name}.#{connection.quote_column_name(name)} #{attribute_condition(arguments[idx])} " }
          [ conditions.join(" AND "), *arguments[0...attribute_names.length] ]
        end
Register or log in to add new notes.