Class: CamelizedRouteFormatter

Inherits:
JSONAPI::RouteFormatter show all
Defined in:
lib/jsonapi/formatter.rb

Class Method Summary collapse

Methods inherited from JSONAPI::Formatter

#formatter_for

Class Method Details

.format(route) ⇒ Object



119
120
121
# File 'lib/jsonapi/formatter.rb', line 119

def format(route)
  super.camelize(:lower)
end

.unformat(formatted_route) ⇒ Object



123
124
125
# File 'lib/jsonapi/formatter.rb', line 123

def unformat(formatted_route)
  formatted_route.to_s.underscore.to_sym
end