Create a Singleton Resource for JSONAPI with jsonapi-resources ruby gem

The Jsonapi Resources gem is a resource-focused Rails library for developing JSON API compliant servers. The Jsonapi-Resources makes having your server compliant with JSON API specification much easier but i found the myself wanting to use a signleton resource. (Note: Continue reading Create a Singleton Resource for JSONAPI with jsonapi-resources ruby gem

a DRY singleton Active Record in Ruby on Rails

a Singleton is a design pattern that exists to address a problem where you want to represent an object; and only one of that object can exist at any time, no more. This is to document that which is scattered or implied so hopeful this will save you (and me) from having to hunt and gather. Continue reading a DRY singleton Active Record in Ruby on Rails