Class: Kiosk::Rewrite::PathRewrite
- Inherits:
-
NodeRewrite
- Object
- NodeRewrite
- Kiosk::Rewrite::PathRewrite
- Defined in:
- lib/kiosk/rewrite/path_rewrite.rb
Instance Method Summary collapse
Methods inherited from NodeRewrite
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 |