Sha256: b0068abc04476c8bee8f578206a185b7088e02576ae8c564ade81b207d66f0ea
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
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__) config.before_eager_load { |app| app.reload_routes! } initializer 'motr.initializer' do require 'motr/orm/mongoid' if defined?(Mongoid) require 'motr/forms' ActiveSupport.on_load(:action_view) do include Motr::Helpers::LayoutHelpers include Motr::Helpers::Navigation include Motr::Helpers::Elements include Motr::Forms::Helpers self.send :default_form_builder=, Motr::Forms.default_builder end ActiveSupport.on_load(:action_controller) do include Motr::Controller::Helpers self.responder = Motr::Controller::Responder end ActiveSupport.on_load(:active_record) do require 'motr/orm/active_record' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
motr-0.1.1 | lib/motr/rails.rb |
motr-0.1.0 | lib/motr/rails.rb |
motr-0.0.9 | lib/motr/rails.rb |
motr-0.0.8 | lib/motr/rails.rb |