codenoble / cache-crispies

Speedy Rails JSON serialization with built-in caching
MIT License
156 stars 14 forks source link

DSL like syntax for serializer settings #12

Closed adamcrown closed 5 years ago

adamcrown commented 5 years ago

Currently, base class settings need to be overridden with like

def self.key
  :mycustomkey
end

But what we want to move to looks like

key :mycustomkey

or

key { Date.today.to_s }

Just to make the serializers more readable and a bit more Rails like.