Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
class_attribute
to allow changing statuses per-responder
If an app happens to have multiple responders on different controllers (which is entirely possible), they may not want to share the same set of statuses for responses. `cattr_accessor` would make that a global value across all of the apps responders, while `class_attribute` can be changed on each class individually if necessary (while still respecting the inherited values if any is set), making it much more flexible. Also disable instance writer and predicate methods, we only need access to read those values from the instance.
- Loading branch information