Permalink
Browse files

fixes #3

  • Loading branch information...
jkraemer committed May 29, 2010
1 parent 1b2644c commit cd4fb3dbc2f3433cc9b5867df995648069d23591
Showing with 9 additions and 8 deletions.
  1. +9 −8 lib/blank_slate.rb
@@ -1,11 +1,13 @@
if defined?(BlankSlate)
# Rails 2.x has it already
module ActsAsFerret
module ActsAsFerret
if defined?(BasicObject)
# Ruby 1.9.x
class BlankSlate < BasicObject
end
elsif defined?(BlankSlate)
# Rails 2.x has it already
class BlankSlate < ::BlankSlate
end
end
else
module ActsAsFerret
else
# 'backported' for Rails pre 2.0
#
#--
@@ -47,7 +49,6 @@ def reveal(name)
instance_methods.each { |m| hide(m) }

end
end

end
end

0 comments on commit cd4fb3d

Please sign in to comment.