Guest User

Untitled

a guest
Sep 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. module Helpers
  2. module Items
  3. class Nanoc::Item
  4.  
  5. alias_method :old_path, :path
  6.  
  7. def path(params = { })
  8. return @site.items.find!(self[:forward]).path if self[:forward]
  9. old_path(params)
  10. end
  11. end
  12. end
  13. end
  14.  
  15. ###
  16. Captain! We’ve been hit!
  17.  
  18. === MESSAGE:
  19.  
  20. SystemStackError: stack level too deep
  21.  
  22. === COMPILATION STACK:
  23.  
  24. (empty)
  25.  
  26. === BACKTRACE:
  27.  
  28. 0. somewhere/tmp/gems/ruby/1.9.1/gems/haml-3.1.4/lib/haml/engine.rb:191
Add Comment
Please, Sign In to add comment