-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
38 lines (19 loc) · 1013 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Signals
=======
BE CAREFUL in Beta yet!!
in application layout add, after javascripts include tag :
<%= activeSignalsJavascript %>
or if you don't want default timeout
<%= activeSignalsJavascript {:timeActive => XX, :timeInactive => XXXX} %>
After you can send event in your code with :
SignalEvent.emit(target, paramsevent);
- Now Signals could use differents backend : Mongoid or ActiveRecord (if you use Mongoid backend you can pass ActiveRecord target, it's not a problem, reverse it's not possible yet)
- Now it's compatible with Rails 3!!
MORE DOCUMENTATION must be provided later!!!
to configure the plugin you must provide an initializer like this :
*********
SignalsEvent.backend = 'mongoid' # or 'ar' for activerecord
SignalsEvent.default_end_in = 10.seconds # default is 5 minutes if not changed here
require 'lib/signals_lib' #if you provide your own SignalsLib Checker load them here
*************
Copyright (c) 2009-2010 Florent Ruard-Dumaine, released under the MIT license