Permalink
Browse files

Add fix for undefined 'reveal'.

  • Loading branch information...
1 parent 046c0a5 commit 5a38e52593ae0d3586ef3c7af409b0eaa2c07215 @brightchimp committed Jul 21, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/acts_as_ferret/blank_slate.rb
@@ -2,6 +2,12 @@ module ActsAsFerret
if defined?(BasicObject)
# Ruby 1.9.x
class BlankSlate < BasicObject
+ # Fix taken from discussion here:
+ # http://j-k.lighthouseapp.com/projects/45560/tickets/177-ruby-192-undefined-method-reveal-for-actsasferretsearchresultsclass
+ class << self
+ def reveal(name)
+ end
+ end
end
elsif defined?(BlankSlate)
# Rails 2.x has it already

0 comments on commit 5a38e52

Please sign in to comment.