Hey Rafael,
Stick the callback methods in SimpleDelegator, wrap the controller in it and pass that to your service object, test the delegator in isolation by making it wrap a mock and verifying each callback method makes the expected ActionController API calls.
Cheers,
M
--
You received this message because you are subscribed to the Google Groups "Objects on Rails" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objects-on-rai...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Yeah there are huge perf differences in the delegate libraries 1.8 vs 1.9. Also be aware that 2.1 addresses a lot of the method cache issues because there is no longer a single global cache.
Hey Rafael,
Stick the callback methods in SimpleDelegator, wrap the controller in it and pass that to your service object, test the delegator in isolation by making it wrap a mock and verifying each callback method makes the expected ActionController API calls.
Sorry, I'm not sure I understand the question - can you gist an example?
Cheers,
M