lib/eastwood/context/hash_route.rb in eastwood-0.3.5 vs lib/eastwood/context/hash_route.rb in eastwood-0.3.7

- old
+ new

@@ -1,8 +1,9 @@ module Eastwood module Context class HashRoute < Struct.new( :key, :hash ) + include RouteHelpers def name key.to_s end @@ -13,10 +14,10 @@ def path hash end def coffee_name - "#{name}_hash" + style_for_javascript "#{name}_hash" end def coffee_args parts.join ', ' end