OK, I saw how this method works by default after asking the question. From the documentation it seemed that these things are loosely related.
Thank you. On Tuesday, December 12, 2017 at 8:39:44 PM UTC+3, Jeremy Evans wrote: > > On Tuesday, December 12, 2017 at 3:52:23 AM UTC-8, Alexander Popov wrote: >> >> Hello! >> >> What do you think about `allow_modifications` option for ` >> Sequel::Plugins::StaticCache >> <http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/StaticCache.html> >> `? >> >> Example, before: >> >> class Artist >> plugin :static_cache >> >> def self.static_cache_allow_modifications? >> true >> end >> end >> >> and after: >> >> class Artist >> plugin :static_cache, allow_modifications: true >> end >> >> Such usage looks more intuitive and simple (especially for many cached >> models), in compression with the class method defining (in each model), >> which always returns `true`. >> >> Thank you. >> > > In general if you want to allow modifications, you should probably be > using the existing frozen: false option. I don't really want to add a > separate option for the frozen but allowing modifications setting. > > Thanks, > Jeremy > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
