Sha256: 4c1251bd2f540c22a42864b3b8fccc601173551750695579a76ffe6cc58d7455

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 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

5 entries across 5 versions & 1 rubygems

Version Path
phrase-0.0.5 lib/phrase/engine.rb
phrase-0.0.4 lib/phrase/engine.rb
phrase-0.0.3 lib/phrase/engine.rb
phrase-0.0.2 lib/phrase/engine.rb
phrase-0.0.1 lib/phrase/engine.rb