Class: DasherizedRouteFormatter
- Inherits:
-
JSONAPI::RouteFormatter
- Object
- JSONAPI::Formatter
- JSONAPI::RouteFormatter
- DasherizedRouteFormatter
- 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
163 164 165 |
# File 'lib/jsonapi/formatter.rb', line 163 def format(_route) super.dasherize end |
.unformat(formatted_route) ⇒ Object
167 168 169 |
# File 'lib/jsonapi/formatter.rb', line 167 def unformat(formatted_route) formatted_route.to_s.underscore end |