No, it's not a searchlogic object but I guess internally it becomes
one, no idea how..I am not that good. Yes, the owner of SL just
removed it. This problem actually could in fact be even related to
friendly_id, where this error in SL occurs if a frienly_id scope is
missing in the object. Not sure if that's really what's happening here
or not. This is a known issue with friendly_id, at least for me.
Wow..this is a good start to my morning!
here is the thread in SL google group.
http://groups.google.com/group/searchlogic/browse_thread/thread/4e2c40ac29668e4b#
This particular job is a mail delivery job "new_post_notification"
method in Notifier, that takes a post object as a parameter.
There are other similar jobs, like new_user_activation instruction
@user, which take a complex object too i.e. User object and they work
just fine.
What might be happening in this case, is that this Post model is also
a scoped friendly_id model and I constantly run into issues where if I
do a
Post.find ('friendly_id_of_that_post'), the find fails, complaining a
scope (i.e. category) is missing. so If I do a
Post.find('friendly_id_of_that_post', :scope =>
'category_of_that_post') then it works.
The post object being passed in this case does not include the
category
@post = Post.create(params[:post_id])
Notifier.delay.deliver_new_post_notification @post
Pls bear with me, I am far from an expert Ruby programmer, but does it
have any bearing on this error/condition?
On Oct 5, 10:48 am, Brandon Keepers <
bran...@opensoul.org> wrote:
> Hah, looks like that was just removed:
>
>
http://github.com/binarylogic/searchlogic/commit/8cd742f28f3ee0ee92a5...
>
> =b
>
> On Oct 5, 2010, at 1:40 PM, ambert ho wrote:
>
> > You might be able to solve this temporarily and get production working again with monkey patching, since Searchlogic:
>
> > RuntimeError
> > : ass
> > from
> > /usr/local/lib/ruby/gems/1.8/gems/searchlogic-2.4.26/lib/searchlogic/search/to_yaml.rb:14:in `yaml_new'
> > from /usr/local/lib/ruby/1.8/yaml.rb:133:in `transr'
>
> > module ClassMethods
> > def yaml_new(klass, tag, val)
> > raise "ass"
> > end
> > end
>
> > What? the hell does that method do? It's overwriting something in the ruby core libs?
>
> > Ambert
>