Sha256: 890b9f9c1fa47a6811def470d71fa750ef3e5a5d49d191d1d041e624c4dbf0cc
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require 'faye' require 'faye-rails/version' require 'faye-rails/middleware' require 'faye-rails/server_list' module FayeRails ROOT = File.expand_path(File.dirname(__FILE__)) if defined? ::Rails class Engine < ::Rails::Engine end end autoload :Controller, File.join(ROOT, 'faye-rails', 'controller') autoload :RackAdapter, File.join(ROOT, 'faye-rails', 'rack_adapter') autoload :Filter, File.join(ROOT, 'faye-rails', 'filter') def self.servers @servers ||= ServerList.new end def self.server(where=nil) if where servers.at(where).first else servers.first end end def self.clients servers.map(&:get_client) end def self.client(where=nil) if where servers.at(where).first.get_client else servers.first.get_client end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faye-rails-2.0.0 | lib/faye-rails.rb |