Permalink
Browse files

Mailboxer 0.3.0 and custom mailboxer config added to installer

  • Loading branch information...
1 parent 183b1d0 commit 301d985db994c271846831c2aaa7deb87d727893 @Roendal Roendal committed Jul 12, 2011
@@ -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
@@ -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
@@ -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

0 comments on commit 301d985

Please sign in to comment.