alerts 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/alerts.gemspec +1 -1
- data/generators/alerts/templates/model.rb +18 -1
- data/lib/alerts/fires.rb +2 -0
- metadata +1 -1
data/alerts.gemspec
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
class Alert < ActiveRecord::Base
|
2
|
+
|
3
|
+
#GEMS USED
|
4
|
+
#ACCESSORS
|
5
|
+
attr_accessible :event_type, :actor, :subject, :secondary_subject, :message, :link
|
6
|
+
|
7
|
+
#ASSOCIATIONS
|
2
8
|
belongs_to :actor, :polymorphic => true
|
3
9
|
belongs_to :subject, :polymorphic => true
|
4
10
|
belongs_to :secondary_subject, :polymorphic => true
|
5
|
-
|
11
|
+
|
12
|
+
#VALIDATIONS
|
13
|
+
#CALLBACKS
|
14
|
+
#QUERY SCOPES
|
15
|
+
#CUSTOM SCOPES
|
16
|
+
#SORTING SCOPES
|
17
|
+
#OTHER STUFF
|
18
|
+
#PRIVATE STUFF
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
end
|
data/lib/alerts/fires.rb
CHANGED