Flowdock
method

column_references

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
column_references(order_args) 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/relation/query_methods.rb, line 1911
      def column_references(order_args)
        references = order_args.flat_map do |arg|
          case arg
          when String, Symbol
            arg
          when Hash
            arg.keys.map do |key|
              key if key.is_a?(String) || key.is_a?(Symbol)
            end
          end
        end
        references.map! { |arg| arg =~ /^\W?(\w+)\W?\./ && $1 }.compact!
        references
      end
Register or log in to add new notes.