method
column_name_with_order_matcher
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::Quoting::ClassMethods
column_name_with_order_matcher()public
Regexp for column names with order (with or without a table name prefix, with or without various order modifiers). Matches the following:
"#{table_name}.#{column_name}" "#{table_name}.#{column_name} #{direction}" "#{table_name}.#{column_name} #{direction} NULLS FIRST" "#{table_name}.#{column_name} NULLS LAST" "#{column_name}" "#{column_name} #{direction}" "#{column_name} #{direction} NULLS FIRST" "#{column_name} NULLS LAST"