lib/faye-rails/routing_hooks.rb in faye-rails-1.0.3 vs lib/faye-rails/routing_hooks.rb in faye-rails-1.0.4

- old
+ new

@@ -6,11 +6,13 @@ def faye_server(mount_path, options={}, &block) defaults = { :mount => mount_path||'/faye', :timeout => 25, + :extensions => nil, :engine => nil, + :ping => nil, :server => 'thin' } unknown_options = options.keys - defaults.keys if unknown_options.one? @@ -24,10 +26,10 @@ Faye::WebSocket.load_adapter(options.delete(:server)) adapter = FayeRails::RackAdapter.new(options) adapter.instance_eval(&block) if block.respond_to? :call - match options[:mount] => adapter + match options[:mount] => adapter, via: :all end end end