notifiable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,13 +26,13 @@ class NotifiableInstallGenerator < Rails::Generators::Base
26
26
  migration_template 'migration.rb', 'db/migrate/notifiable_create_notifications.rb'
27
27
  end
28
28
 
29
- #def copy_initializer
30
- # template "sooner.rb", "config/initializers/sooner.rb"
31
- #end
32
-
33
- def show_readme
34
- readme "README"
35
- end
29
+ # def copy_initializer
30
+ # template "notifiable.rb", "config/initializers/notifiable.rb"
31
+ # end
32
+ #
33
+ # def show_readme
34
+ # readme "README"
35
+ # end
36
36
 
37
37
  protected
38
38
 
@@ -1,3 +1,5 @@
1
+ ActiveSupport.on_load(:action_view) { include Notifiable::Helpers::NotificationHelpers }
2
+
1
3
  module Notifiable
2
4
  class Engine < ::Rails::Engine
3
5
 
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
data/lib/notifiable.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Notifiable
2
- ActionView::Base.send(:include, Notifiable::Helpers::NotificationHelper)
2
+
3
3
  end
4
4
 
5
5
  require 'notifiable/rails'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shenouda Bertel
@@ -38,9 +38,7 @@ files:
38
38
  - lib/notifiable/version.rb
39
39
  - lib/notifiable/rails.rb
40
40
  - lib/notifiable.rb
41
- - lib/generators/notifiable_install/templates/sooner.rb
42
41
  - lib/generators/notifiable_install/templates/migration.rb
43
- - lib/generators/notifiable_install/templates/README
44
42
  - lib/generators/notifiable_install/notifiable_install_generator.rb
45
43
  has_rdoc: true
46
44
  homepage: http://github.com/shenoudab/notifiable
@@ -1,23 +0,0 @@
1
-
2
- ===============================================================================
3
-
4
- Some setup you must do manually if you haven't yet:
5
-
6
- 1. Ensure you have defined root_url to *something* in your config/routes.rb.
7
-
8
- root :to => "sooner/subscribers#new"
9
-
10
- 2. Ensure you have defined javascript in app/views/layouts/application.html.erb
11
-
12
- <%= javascript_include_tag :defaults %>
13
- <!-- or -->
14
- <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "jquery.rails.js" %>
15
-
16
- <%= csrf_meta_tag %>
17
-
18
- 3. Ensure you have flash messages in app/views/layouts/application.html.erb.
19
- For example:
20
-
21
- <p class="notice"><%= notice %></p>
22
-
23
- ===============================================================================
@@ -1,13 +0,0 @@
1
- Sooner.setup do |config|
2
- # Configure the e-mail address which will be shown in SoonerMailer.
3
- config.mailer_sender = "info@sooner.com"
4
-
5
- config.db_store = true
6
- config.csv_store = true
7
- config.csv_file = "subscribers.csv"
8
-
9
- # Messages.
10
- config.subscribed = 'Subscribed Successfully.'
11
- config.already_subscribed = 'Already Subscribed.'
12
- config.error_subscribed = 'Please Try to subscribe again.'
13
- end