These are chat archives for opal/opal

3rd
Mar 2018
Elia Schito
@elia
Mar 03 2018 07:37
@barriehadfield sure, it’s actually a sprockets based hack, not a rails one
Barrie Hadfield
@barriehadfield
Mar 03 2018 07:38
Fantastic - thank you - I did not even try!
Barrie Hadfield
@barriehadfield
Mar 03 2018 07:58
@elia what would be the Opal Sprockets version of <%= Rails.application.assets['opal'].to_s %>?
Elia Schito
@elia
Mar 03 2018 08:02
🤦‍ sorry, I didn't remember it relies on Rails.application, anyway it depends on how you access sprockets, but IIRC sprockets .erb files are executed inside Sprockets::Context, let me check…
@barriehadfield it's probably just <%= environment['opal'].to_s %>
Barrie Hadfield
@barriehadfield
Mar 03 2018 08:04
thank you - I will try now
Its working - thank you very much!
Elia Schito
@elia
Mar 03 2018 08:08
:thumbsup: