Closed floriandejonckheere closed 1 year ago
Allow specifying an empty key in the controller, overriding a key set (or automatically generated) in the serializer class.
class PersonSerializer < CacheCrispies::Base key :person serialize :name end cache_render Person.new(name: "John Doe") # => { person: { name: "John Doe" } } cache_render Person.new(name: "John Doe"), key: nil # => { name: "John Doe" }
Makes sense. Thanks for the PR!
I just released version 1.4.0. Thanks again!
1.4.0
Allow specifying an empty key in the controller, overriding a key set (or automatically generated) in the serializer class.