Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use SS::Base initializers to configure Mailboxer

  • Loading branch information...
commit d73ec026279c900822abe35da2cc6f2da92bfd72 1 parent 01a594f
@atd atd authored
View
4 lib/generators/social_stream/base/install_generator.rb
@@ -44,10 +44,6 @@ def create_navigation_config
copy_file 'navigation.rb', 'config/navigation.rb'
end
- def create_mailboxer_custom_config
- copy_file 'mailboxer_custom.rb', 'config/initializers/mailboxer.rb'
- end
-
def create_migration_file
require 'rake'
Rails.application.load_tasks
View
13 lib/generators/social_stream/base/templates/mailboxer_custom.rb
@@ -1,13 +0,0 @@
-Mailboxer.setup do |config|
-
- #Configures if you applications uses or no the email sending for Notifications and Messages
- config.uses_emails = true
-
- #Configures the default from for the email sent for Messages and Notifications of Mailboxer
- config.default_from = "no-reply@mailboxer.com"
-
- #Configures the methods needed by mailboxer
- config.email_method = :mailboxer_email
- #config.name_method = :name
- #config.should_email_method = :should_email?
-end
View
6 lib/social_stream/base.rb
@@ -35,6 +35,12 @@ class Engine < ::Rails::Engine #:nodoc:
:profile => '119x119'}
end
end
+
+ initializer "social_stream-base.mailboxer", :before => :load_config_initializers do
+ Mailboxer.setup do |config|
+ config.email_method = :mailboxer_email
+ end
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.