Skip to content

Instantly share code, notes, and snippets.

View cyberfox's full-sized avatar

Morgan Schweers cyberfox

View GitHub Profile
@linjian
linjian / mongo_mapper_default_scope.rb
Created July 19, 2012 07:56
MongoMapper Default Scope
# lib/mongo_mapper_ext/mongo_mapper_default_scope.rb
#
# Copy from rails-ext-0.3.29/lib/mongo_mapper_ext/plugins/default_scope.rb
# See http://rubygems.org/gems/rails-ext
#
# The implementation has been modified based on origin version:
# * Add query method to replace methods find_one, find_many, count.
# * Remove dependence on ruby-ext.
# * Support dynamic methods xxx_with_exclusive_scope.
#
//
// ObjCEntity.m
// Entity
//
// Created by dbrown on 2/10/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "ObjCEntity.h"