Flowdock
method

validate_order_args

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
validate_order_args(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 1052
    def validate_order_args(args)
      args.grep(Hash) do |h|
        unless (h.values - [:asc, :desc]).empty?
          raise ArgumentError, 'Direction should be :asc or :desc'
        end
      end
    end
Register or log in to add new notes.