Class: CamelizedRouteFormatter
- Inherits:
-
JSONAPI::RouteFormatter
- Object
- JSONAPI::Formatter
- JSONAPI::RouteFormatter
- CamelizedRouteFormatter
- Defined in:
- lib/jsonapi/formatter.rb
Class Method Summary collapse
Methods inherited from JSONAPI::Formatter
cached, formatter_for, uncached
Class Method Details
.format(_route) ⇒ Object
151 152 153 |
# File 'lib/jsonapi/formatter.rb', line 151 def format(_route) super.camelize(:lower) end |
.unformat(formatted_route) ⇒ Object
155 156 157 |
# File 'lib/jsonapi/formatter.rb', line 155 def unformat(formatted_route) formatted_route.to_s.underscore end |