I have a bunch of custom abilities added to a new role. All that is
working very well. However, whenever I make a code change (template edits
are fine), my custom abilities are gone. This is major pain during
development as I have to restart the server on every code change. Is anyone
else experiencing this?
After debugging a bit, I have traced it to a few spots, but I am not sure
how to fix it. CanCan's @current_ability is reset to nil (at some
unidentified location) and assigned to a new Spree::Ability instance in
Spree::Core::ControllerHelper's current_ability method. Since the
initializers are not executed, the new abilities are not registered.
Any help is greatly appreciated.
Cheers!
Sunil Gowda
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.