Skip to content

Commit

Permalink
fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed May 29, 2010
1 parent 1b2644c commit cd4fb3d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions 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
#
#--
Expand Down Expand Up @@ -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.