Sha256: 3155b4c78c21cbafb29378427adad592546e61ed3390de2ed21b88f9abedf512
Contents?: true
Size: 327 Bytes
Versions: 7
Compression:
Stored size: 327 Bytes
Contents
module React module Rails class Engine < ::Rails::Engine initializer "react_rails.setup_engine", :group => :all do |app| sprockets_env = app.assets || Sprockets # Sprockets 3.x expects this in a different place sprockets_env.register_engine(".jsx", React::JSX::Template) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems