daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Sep 23rd, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top