Permalink
Browse files

Added except for quickly rejecting records.

  • Loading branch information...
danielmorrison committed Aug 20, 2008
1 parent ceeafe6 commit dca3b5d800f19f2e37aa4866e7b39213d8291625
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/utility_scopes.rb
  2. +1 −1 utility_scopes.gemspec
View
@@ -1,13 +1,15 @@
require 'utility_scopes/limited'
require 'utility_scopes/ordered'
require 'utility_scopes/eager'
+require 'utility_scopes/except'
if defined?(ActiveRecord)
ActiveRecord::Base.class_eval do
include UtilityScopes::Limited
include UtilityScopes::Ordered
include UtilityScopes::Eager
+ include UtilityScopes::Except
end
end
View
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
s.add_dependency 'activerecord', ['>= 2.1.0']
- s.files = %w(README.rdoc Rakefile LICENSE init.rb lib lib/utility_scopes lib/utility_scopes.rb lib/utility_scopes/eager.rb lib/utility_scopes/limited.rb lib/utility_scopes/ordered.rb spec spec/abstract_spec.rb spec/eager_spec.rb spec/limit_spec.rb spec/ordered_spec.rb spec/spec_helper.rb spec/fixtures spec/fixtures/article.rb)
+ s.files = %w(README.rdoc Rakefile LICENSE init.rb lib lib/utility_scopes lib/utility_scopes.rb lib/utility_scopes/eager.rb lib/utility_scopes/except.rb lib/utility_scopes/limited.rb lib/utility_scopes/ordered.rb spec spec/abstract_spec.rb spec/eager_spec.rb spec/except_spec.rb spec/limit_spec.rb spec/ordered_spec.rb spec/spec_helper.rb spec/fixtures spec/fixtures/article.rb)
end

0 comments on commit dca3b5d

Please sign in to comment.