Sha256: d0aea378e5d5ff2adcf0647f1f21ef82cb9a14e6f64198817ceb35c0f25b4c51
Contents?: true
Size: 717 Bytes
Versions: 7
Compression:
Stored size: 717 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 initializer 'websocket_rails.load_event_routes', :before => :preload_frameworks do |app| load "#{Rails.root}/config/events.rb" if File.exists?("#{Rails.root}/config/events.rb") end rake_tasks do require 'websocket-rails' load 'rails/tasks/websocket_rails.tasks' end end end
Version data entries
7 entries across 7 versions & 3 rubygems