Sha256: af9db4c919d145c23187825625fb37c5d85cd949652bb1bba83452b39d911e3e
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
module ActiveRecord module NamedScope class Scope delegate :member_class, :to => :proxy_found include Hobo::Scopes::ApplyScopes def respond_to?(method) super || scopes.include?(method) || proxy_scope.respond_to?(method) end private def method_missing(method, *args, &block) if respond_to?(method) && scopes.include?(method) scopes[method].call(self, *args) else with_scope :find => proxy_options do proxy_scope.send(method, *args, &block) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems