# File lib/will_paginate/named_scope_patch.rb, line 13 def method_missing_without_paginate(method, *args) if @reflection.klass.scopes.include?(method) @reflection.klass.scopes[method].call(self, *args) { |*a| yield(*a) if block_given? } else method_missing_without_scopes(method, *args) { |*a| yield(*a) if block_given? } end end