Skip to content

Commit

Permalink
Renamed metaclass to eigenclass to avoid conflict w/ Rails' method of…
Browse files Browse the repository at this point in the history
… the same name
  • Loading branch information
rwdaigle committed Sep 16, 2009
1 parent 482dd00 commit e57c04e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/utility_scopes/ordered.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def ordered_by(clause)
} }
}) })


metaclass.instance_eval do eigenclass.instance_eval do
define_method(:default_ordering) { clause } define_method(:default_ordering) { clause }
end end
end end
Expand All @@ -76,7 +76,7 @@ def method_missing(method, *args, &block)


private private


def metaclass; class << self; self end; end def eigenclass; class << self; self end; end
end end
end end
end end
4 changes: 2 additions & 2 deletions utility_scopes.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,8 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|


s.name = "utility_scopes" s.name = "utility_scopes"
s.version = "0.2.2" s.version = "0.2.3"
s.date = "2008-10-28" s.date = "2009-09-16"


s.summary = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models" s.summary = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models"
s.email = "ryan@yfactorial.com" s.email = "ryan@yfactorial.com"
Expand Down

0 comments on commit e57c04e

Please sign in to comment.