method

field_ordered_value

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

field_ordered_value(column, values)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 141
      def field_ordered_value(column, values) # :nodoc:
        field = Arel::Nodes::NamedFunction.new("FIELD", [column, values.reverse])
        Arel::Nodes::Descending.new(field)
      end