#101 ✓resolved
mat

Commit after_filter doesn't propagate to application controllers when Sunspot::Rails installed as gem

Reported by mat | March 22nd, 2010 @ 09:48 AM | in Bugs

Received a report that when Sunspot::Rails is loaded as a gem, the after_filter that commits at the end of the request doesn't propagate to the application's controllers. This is because the after_filter method uses the inheritable_attribute structure internally, and in this case the controllers are loaded before the plugin. Thus the inheritable_attribute doesn't cascade to controllers that have already been loaded into memory.

Need to see if I can reproduce in the test suite -- currently the test suite works by loading Sunspot::Rails as a vendored plugin, but I think I'll need to come up with some alternative ways to run it.

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 ยป

Awesome Solr interaction for Ruby

People watching this ticket

Referenced by

Pages