method

method_missing

method_missing(method, *args, &block)
protected

No documentation available.

# File activerecord/lib/active_record/relation/delegation.rb, line 91
      def method_missing(method, *args, &block)
        if @klass.respond_to?(method)
          self.class.delegate_to_scoped_klass(method)
          scoping { @klass.public_send(method, *args, &block) }
        elsif arel.respond_to?(method)
          self.class.delegate method, :to => :arel
          arel.public_send(method, *args, &block)
        else
          super
        end
      end