Sha256: 046516d400950db3c306981175335d7b898621ac307b22ab9b98707a0803d3fd

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

module Motr
  class Engine < ::Rails::Engine #:nodoc:
    config.motr = Motr    
    
    # Add load paths straight to I18n, so engines and application can overwrite it.
    require 'active_support/i18n'
    I18n.load_path << File.expand_path('../../config/locales/en.yml', __FILE__)
    
    initializer :after_initialize do
      ActionView::Base.send :default_form_builder=, Motr::Forms.default_builder
      ApplicationController.class_eval do 
        self.responder = Motr::Controller::Responder
      end
      ActionController::Base.extend Motr::Controller::ScriptEvents
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motr-0.0.3 lib/motr/rails.rb