#23 ✓resolved
Jens

Use Rails' after_initialize and to_prepare callbacks in init.rb

Reported by Jens | February 13th, 2010 @ 12:36 AM

Attached is a patch that replaces the new [[AafLoader]] with config callbacks in init.rb

config.after_initialize { [[ActsAsFerret]]::load_config }
config.to_prepare       { [[ActsAsFerret]]::load_config }

#to_prepare
is called before each request in development mode, or before the initial request in production.

This is a lot cleaner and "Just Works". Now all people need to do is defined their shared indexes in config/aaf.rb

No comments found

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