Nick Landgrebe
Nick Landgrebe
## Stories * As a developer, if I send an invalid field name like `field_name2` when I mean to send `field_name`, it should respond with a detailed message about why...
Add `Content-Type: application/vnd.api+json` to accepted headers and response
## Story * As a developer, I don't want to manually define my attribute accessors using `caprese_is_attribute?` when I am already defining them using `attr_accessor` etc
## Stories * As a developer, I want to assign a primary key for Caprese to use by model, and by controller action ``` class Controller primary_key :id, only: :validate_code...
Allow validations and callbacks to be toggled off in models ``` class Product < ApplicationRecord validates_presence_of :price, unless: :caprese? end ```
Remove `before_query`/`after_query` callbacks in controllers, because `before_action` and `after_action` are more accurate
## Story As a developer, I want to be able to access relationship data, like for `/data/relationships/transactions/data`, but like this: ``` transactions_data # returns nil transactions_data! # fails with error...
Add logic to error class that checks if error code is relevant to length, and if it is, then render `too_big.one` and `too_big.other`, etc. so you can customize singular/plural messaging
## Stories * As a developer, I may use (or be required to use) a promise library other than the heavy-duty `jQuery.ajax`, so I want to be able to customize...