better way to get opal to load salaam

This commit is contained in:
Torsten Ruger 2015-07-13 15:14:10 +03:00
parent 157981edf0
commit c213931fb3
2 changed files with 3 additions and 5 deletions

View File

@ -3,3 +3,6 @@
# bootstrap css framework
component 'bootstrap'
Opal.use_gem("salama")

View File

@ -1,11 +1,6 @@
# app.rb is used to configure your app. This code is only run on the server,
# then any config options in config.public are passed to the client as well.
["parslet", "salama-object-file", "salama-reader","salama" ].each do |g|
lib_path = Gem.loaded_specs[g].full_gem_path + '/lib'
Opal.append_path(lib_path)
end
Volt.configure do |config|
# Setup your global app config here.