Module: Eastwood::Context::RouteHelpers
- Included in:
- ActionRoute, ClientRoute, JourneyRoute
- Defined in:
- lib/eastwood/context/route_helpers.rb
Instance Method Summary collapse
Instance Method Details
#style_for_javascript(route) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/eastwood/context/route_helpers.rb', line 5 def style_for_javascript( route ) case Eastwood.javascript_route_style.to_sym when :underscore route.underscore when :camelcase route.camelcase :lower else raise InvalidRouteStyleError end end |