Sha256: 250765b6574f41f921ff1c9f7a6062cc4d69f4be1776459e1a9b8a843ae2c1ab
Contents?: true
Size: 976 Bytes
Versions: 1
Compression:
Stored size: 976 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 'motr.initializer' do require 'motr/orm/mongoid' if defined?(Mongoid) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motr-0.0.6 | lib/motr/rails.rb |