Sha256: 0dd1579031b81337b63159ac0a6abd0b0ae628e36d4a2497817786a9fea43b66
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 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 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motr-0.0.4 | lib/motr/rails.rb |