Sha256: 8b918caef232e22ea0361fe04f69b6609ac7112da16e4cf56802e39c3516db67

Contents?: true

Size: 349 Bytes

Versions: 31

Compression:

Stored size: 349 Bytes

Contents

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

require 'phrase'
require 'i18n'

if defined? Rails
  class Phrase::Engine < Rails::Engine
    initializer 'phrase', :after => :disable_dependency_loading do |app|
      require 'phrase/adapters/i18n'
      require 'phrase/adapters/fast_gettext'
      ActionView::Base.send :include, Phrase::ViewHelpers
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
phrase-0.4.11 lib/phrase/engine.rb
phrase-0.4.10 lib/phrase/engine.rb
phrase-0.4.9 lib/phrase/engine.rb
phrase-0.4.8 lib/phrase/engine.rb
phrase-0.4.7 lib/phrase/engine.rb
phrase-0.4.6 lib/phrase/engine.rb
phrase-0.4.5 lib/phrase/engine.rb
phrase-0.4.4 lib/phrase/engine.rb
phrase-0.4.3 lib/phrase/engine.rb
phrase-0.4.2 lib/phrase/engine.rb
phrase-0.4.1 lib/phrase/engine.rb