Sha256: 4f87ac0c29e38c0f61122665ae71a31b178b53967c39a428a871d50f15a8e2f9

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 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
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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