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
161 162 163 |
# File 'lib/jsonapi/formatter.rb', line 161 def format(_route) super.dasherize end |
.unformat(formatted_route) ⇒ Object
165 166 167 |
# File 'lib/jsonapi/formatter.rb', line 165 def unformat(formatted_route) formatted_route.to_s.underscore end |