Class: Kiosk::Rewrite::PathRewrite

Inherits:
NodeRewrite show all
Defined in:
lib/kiosk/rewrite/path_rewrite.rb

Instance Method Summary collapse

Methods inherited from NodeRewrite

#initialize, #matches?

Constructor Details

This class inherits a constructor from Kiosk::Rewrite::NodeRewrite

Instance Method Details

#evaluate(node) ⇒ Object



4
5
6
7
# File 'lib/kiosk/rewrite/path_rewrite.rb', line 4

def evaluate(node)
  node.uri_attribute.content = @proc.call(node.resource,node)
rescue ActionController::RoutingError => e
end