Permalink
Browse files

fix breakage probably introduced by the new(er) method missing magic

  • Loading branch information...
1 parent 61c3b87 commit 2b3240813f21d2f339e29bd9410e447c1a9b8771 @defunkt committed Apr 24, 2008
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/ambition/api.rb
View
@@ -25,7 +25,7 @@ def entries
alias_method :to_a, :entries
def size
- ambition_context.size
+ ambition_context == self ? super : ambition_context.size
end
def slice(start, length = nil)
@@ -68,7 +68,6 @@ def empty?
size.zero?
end
-
# Builds a new +Context+.
def ambition_context
Context.new(self)
@@ -81,7 +80,6 @@ def ambition_adapter
@@ambition_adapter[name] || @@ambition_adapter[parent.name]
end
-
# Assign the ambition adapter. Typically, you use this in the toplevel file of your adapter.
#
# For example, for ambitious_sphinx, in our lib/ambition/adapters/ambitious_sphinx.rb:

0 comments on commit 2b32408

Please sign in to comment.