Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mailboxer 0.3.0 and custom mailboxer config added to installer

  • Loading branch information...
commit 301d985db994c271846831c2aaa7deb87d727893 1 parent 183b1d0
@Roendal Roendal authored
View
4 lib/generators/social_stream/base/install_generator.rb
@@ -44,6 +44,10 @@ 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
@@ -0,0 +1,13 @@
+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
2  social_stream-base.gemspec
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
# OAuth provider
s.add_runtime_dependency('oauth-plugin','~> 0.4.0.pre1')
# Messages
- s.add_runtime_dependency('mailboxer','~> 0.2.5')
+ s.add_runtime_dependency('mailboxer','~> 0.3.0')
# Avatar manipulation
s.add_runtime_dependency('rmagick','~> 2.13.1')
# Tagging
Please sign in to comment.
Something went wrong with that request. Please try again.