This PR introduces the ability to use the option fetch_options when lazy-loading a view to pass options to the .fetch call.
Additionally, I noticed that the options that the fetch method sets by default (specifically readFromCache and writeToCache) are not being added to the model's options hash because the options provided are not being passed down to the getModelOrCollectionForSpec call. I made the change here to pass those options along as well.
Coverage decreased (-0.19%) to 84.03% when pulling f0681a81c9fab5646ca492e63a02fa74939160a7 on sarchila:SA-lazyfetch-pass-options into 5ada76ac4d284008e966037c7e0d86b83190f326 on rendrjs:master.
This PR introduces the ability to use the option
fetch_options
when lazy-loading a view to pass options to the.fetch
call.Additionally, I noticed that the options that the
fetch
method sets by default (specificallyreadFromCache
andwriteToCache
) are not being added to the model'soptions
hash because the options provided are not being passed down to thegetModelOrCollectionForSpec
call. I made the change here to pass those options along as well.