#177 new
Tony

ruby 1.9.2 / undefined method `reveal' for ActsAsFerret::SearchResults:Class

Reported by Tony | October 9th, 2010 @ 05:37 AM

With 1.9.2 I needed to update blank_slate.rb to include the reveal method before I could start the ferret server

if defined?(BasicObject)

# Ruby 1.9.x
class BlankSlate < BasicObject
    class << self
      def reveal(name)
      end
    end
end

I also needed to modify jk-ferret to use BasicObject for the BlankSlate as is done in acts_as_ferret/blank_slate.rb

jk-ferret-0.11.8.2/lib/ferret/field_symbol.rb

if defined?(BasicObject)

# Ruby 1.9.x
class BlankSlate < BasicObject
end

else

class BlankSlate
  instance_methods.each { |m| undef_method m unless m =~ /^__/ }
end

end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages