ruby-hyperloop / hyper-rails

The project has moved to Hyperstack!! - One step integration of reactrb and associated gems with rails
https://hyperstack.org/
MIT License
14 stars 5 forks source link

Fixes to allow things to work in production mode #4

Open catmando opened 8 years ago

catmando commented 8 years ago

1) Do not add these lines to application.rb:

`config.eager_load_paths += %W(#{config.root}/app/views/components)`
`config.autoload_paths += %W(#{config.root}/app/views/components)`

They are not longer necessary (since public models are moved), and they break production.

2) The require_tree in models.rb can only execute in Opal land:

# app/models/models.rb
require_tree './public' if RUBY_ENGINE == 'opal' # add the guard
sfcgeorge commented 7 years ago

These files have all moved so this issue should probably be closed.