Created
December 17, 2011 17:04
-
-
Save neovintage/1490742 to your computer and use it in GitHub Desktop.
Configuring Rails 3 Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.action_mailer.raise_delivery_errors = true | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
config.action_mailer.perform_deliveries = false | |
config.action_mailer.default :charset => "utf-8" | |
config.active_support.deprecation = :log | |
config.mongo_fifo = MongoFifo::Store.new(Mongo::Connection.new['mongo_fifo']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initializer "mongo_fifo.configure_mongodb_connection" do |app| | |
unless defined?(FIFO_CACHE) | |
silence_warnings { Object.const_set "FIFO_CACHE", app.config.mongo_fifo } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MongoFifo | |
class Railtie < Rails::Railtie | |
config.mongo_fifo = ActiveSupport::OrderedOptions.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment