Skip to content

Commit

Permalink
Make it compatible with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Mar 30, 2010
1 parent 39ad05a commit 357b710
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/responders.rb
Expand Up @@ -8,17 +8,16 @@ module Responders
ActionController::Base.extend Responders::ControllerMethod

class Railtie < ::Rails::Railtie
railtie_name :responders

config.responders = ActiveSupport::OrderedOptions.new
config.generators.scaffold_controller = :responders_controller

# Add load paths straight to I18n, so engines and application can overwrite it.
require 'active_support/i18n'
I18n.load_path << File.expand_path('../responders/locales/en.yml', __FILE__)

initializer "responders.flash_responder" do
if config.responders.flash_keys
Responders::FlashResponder.flash_keys = config.responders.flash_keys
initializer "responders.flash_responder" do |app|
if app.config.responders.flash_keys
Responders::FlashResponder.flash_keys = app.config.responders.flash_keys
end
end
end
Expand Down

0 comments on commit 357b710

Please sign in to comment.