new_data_notifier 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/new_data_notifier.rb +4 -0
- metadata +3 -3
data/lib/new_data_notifier.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# NewDataNotifier
|
2
2
|
require 'action_mailer'
|
3
3
|
|
4
|
+
##
|
5
|
+
# Mail template
|
6
|
+
#
|
4
7
|
class NewDataNotifier < ActionMailer::Base
|
5
8
|
self.mailer_name = 'new_dat_notifier'
|
6
9
|
self.append_view_path "#{File.dirname(__FILE__)}/views"
|
@@ -39,6 +42,7 @@ class NewDataNotifier < ActionMailer::Base
|
|
39
42
|
end
|
40
43
|
end
|
41
44
|
|
45
|
+
# notification event.
|
42
46
|
def notification(data_hash)
|
43
47
|
@data_hash = data_hash
|
44
48
|
options = self.class.default_options
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: new_data_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael He
|