Permalink
Browse files

alias_method in the Query

  • Loading branch information...
1 parent f2c83f8 commit 49291435254750376047eabe55d4923c39ab953b @defunkt committed Feb 26, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 adapters/ambitious_activerecord/lib/ambition/adapters/active_record/query.rb
@@ -11,6 +11,7 @@ def kick
def size
owner.count(to_hash)
end
+ alias_method :length, :size
def to_hash
hash = {}

0 comments on commit 4929143

Please sign in to comment.