Sha256: 776343216c90a1be212d3e538969cde7c48f11649bcb78d15e79eda4da9eeb52
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
# -*- encoding : utf-8 -*- require 'phrase' require 'i18n' if defined? Rails module Phrase class Engine < Rails::Engine initializer 'phrase' do |app| ActiveSupport.on_load(:action_view) do ::ActionView::Base.send :include, Phrase::Extensions::Base end ActiveSupport.on_load(:action_controller) do ::ActionController::Base.send :include, Phrase::Extensions::Base end ActionView::Base.send :include, Phrase::ViewHelpers end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phrase-0.1.3 | lib/phrase/engine.rb |
phrase-0.1.2 | lib/phrase/engine.rb |
phrase-0.1.1 | lib/phrase/engine.rb |
phrase-0.1 | lib/phrase/engine.rb |