alerts 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{alerts}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ritvvij Parrikh"]
@@ -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
- end
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
@@ -31,6 +31,8 @@ module Alerts
31
31
  memo
32
32
  end
33
33
  create_options[:event_type] = event_type.to_s
34
+ create_options[:message] = opts[:message]
35
+ create_options[:link] = opts[:link]
34
36
 
35
37
  Alert.create!(create_options)
36
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alerts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: