Sha256: 155ec244788ad458cebb2677dc039b196965687f7b95b39256c159d189d15f34

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

require 'react-rails'

module Pageflow
  module React
    class Engine < Rails::Engine
      isolate_namespace Pageflow::React

      config.autoload_paths << File.join(config.root, 'lib')

      initializer "pageflow-react.add_watchable_files", group: :all do |app|
        app.config.watchable_files.concat Dir["#{config.root}/app/assets/javascripts/**/*.jsx*"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 lib/pageflow/react/engine.rb
pageflow-react-0.1.0 lib/pageflow/react/engine.rb