method

method_missing

rails latest stable - Class: ActiveRecord::Delegation

Method deprecated or moved

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

method_missing(method, *args, &block)
private

No documentation available.

# File activerecord/lib/active_record/relation/delegation.rb, line 119
      def method_missing(method, *args, &block)
        if @klass.respond_to?(method)
          scoping { @klass.public_send(method, *args, &block) }
        elsif arel.respond_to?(method)
          arel.public_send(method, *args, &block)
        else
          super
        end
      end