Permalink
Browse files

Fixing gem file structure

  • Loading branch information...
1 parent 7aa5eae commit 22095ac79da7954ace544bec3e429e8a57a87986 @rwdaigle rwdaigle committed Aug 20, 2008
Showing with 7 additions and 7 deletions.
  1. +5 −5 init.rb → lib/utility_scopes.rb
  2. +2 −2 utility_scopes.gemspec
@@ -1,13 +1,13 @@
-if defined?(ActiveRecord)
+require 'utility_scopes/limited'
+require 'utility_scopes/ordered'
+require 'utility_scopes/eager'
- require 'utility_scopes/limited'
- require 'utility_scopes/ordered'
- require 'utility_scopes/eager'
+if defined?(ActiveRecord)
ActiveRecord::Base.class_eval do
include UtilityScopes::Limited
include UtilityScopes::Ordered
include UtilityScopes::Eager
end
-else
+end
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
s.description = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models."
s.has_rdoc = true
s.authors = ["Ryan Daigle"]
- s.files = ["init.rb",
- "README.rdoc",
+ s.files = ["README.rdoc",
"utility_scopes.gemspec",
+ "lib/utility_scopes.rb",
"lib/utility_scopes/limited.rb",
"lib/utility_scopes/ordered.rb",
"lib/utility_scopes/eager.rb"]

0 comments on commit 22095ac

Please sign in to comment.