Sha256: 3a21b19b6263f3e2c59e360b700b38abb70cdf2b6e4a9c8d6941b1d5ba6326d7

Contents?: true

Size: 521 Bytes

Versions: 11

Compression:

Stored size: 521 Bytes

Contents

module WebsocketRails

  class Engine < Rails::Engine

    config.autoload_paths += [File.expand_path("../../lib", __FILE__)]

    paths["app"] << "lib/rails/app"
    paths["app/controllers"] << "lib/rails/app/controllers"

    if ::Rails.version >= '4.0.0'
      paths["config/routes.rb"]   << "lib/rails/config/routes.rb"
    else
      paths["config/routes"]   << "lib/rails/config/routes.rb"
    end

    rake_tasks do
      require 'websocket-rails'
      load 'rails/tasks/websocket_rails.tasks'
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
websocket-rails-0.6.0 lib/websocket_rails/engine.rb
websocket-rails-0.5.0 lib/websocket_rails/engine.rb
websocket-rails-0.4.9 lib/websocket_rails/engine.rb
websocket-rails-0.4.8 lib/websocket_rails/engine.rb
websocket-rails-0.4.7 lib/websocket_rails/engine.rb
websocket-rails-0.4.6 lib/websocket_rails/engine.rb
websocket-rails-0.4.5 lib/websocket_rails/engine.rb
websocket-rails-0.4.4 lib/websocket_rails/engine.rb
websocket-rails-0.4.3 lib/websocket_rails/engine.rb
websocket-rails-0.4.2 lib/websocket_rails/engine.rb
websocket-rails-0.4.1 lib/websocket_rails/engine.rb