Sha256: 26acc5b98aa18e23430977ac9de87531e49698c6623b9a3a0d686fbd4be159d0

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'phrase'
require '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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phrase-0.0.7 lib/phrase/engine.rb
phrase-0.0.6 lib/phrase/engine.rb