Permalink
Browse files

Fix LazySpecification error on #to_ary, called by Array#flatten.

  • Loading branch information...
1 parent 2235f98 commit 0ab585131bcec2b5857c74aa68c6df3d25f66fdf @danp danp committed Jun 10, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/bundler/lazy_specification.rb
@@ -59,6 +59,8 @@ def to_s
private
def method_missing(method, *args, &blk)
+ return super if method == :to_ary
+
raise "LazySpecification has not been materialized yet (calling :#{method} #{args.inspect})" unless @specification
return super unless respond_to?(method)

0 comments on commit 0ab5851

Please sign in to comment.