Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a 1.9 patch, thanks to Ivan Ukhov - making Array() work with F…

…auxColumns.
  • Loading branch information...
commit f7e8ee83bd398cb043d5622f9ad30c7ff1274521 1 parent 583e61f
@pat pat authored
View
1  README.textile
@@ -161,3 +161,4 @@ Since I first released this library, there's been quite a few people who have su
* Brad Sumersford
* Amir Yalon
* Edgars Beigarts
+* Ivan Ukhov
View
4 lib/thinking_sphinx/index/faux_column.rb
@@ -50,6 +50,10 @@ def is_string?
@name.is_a?(String) && @stack.empty?
end
+ def to_ary
+ [self]
+ end
+
# This handles any 'invalid' method calls and sets them as the name,
# and pushing the previous name into the stack. The object returns
# itself.
View
8 spec/thinking_sphinx/index/faux_column_spec.rb
@@ -27,4 +27,10 @@
]
end
end
-end
+
+ describe '#to_ary' do
+ it "should return an array with the instance inside it" do
+ subject.to_ary.should == [subject]
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.