sstephenson/sprockets — comment on commit 8f014eb09226383bc470d2c21ca557b7e6a2ef4a
File: lib/sprockets/context.rb line 12
By eirc:

Here do you actually mean `environment.context_class.instance_eval do` ? What you currently document there does not work for me, I get an `undefined method 'include' for #` error and doing it for the context_class works ok.

Also is this supposed to go into an erb template? As in `<% environment.instance_eval { include MyHelper } %>`? This is what works for me but strange thing is that after I include `MyHelper` once its available everywhere and this is probably not wanted behaviour.