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.31 lib/phrase/engine.rb
phrase-0.4.30 lib/phrase/engine.rb
phrase-0.4.29 lib/phrase/engine.rb
phrase-0.4.28 lib/phrase/engine.rb
phrase-0.4.27 lib/phrase/engine.rb
phrase-0.4.26 lib/phrase/engine.rb
phrase-0.4.25 lib/phrase/engine.rb
phrase-0.4.24 lib/phrase/engine.rb
phrase-0.4.23 lib/phrase/engine.rb
phrase-0.4.22 lib/phrase/engine.rb
phrase-0.4.21 lib/phrase/engine.rb
phrase-0.4.20 lib/phrase/engine.rb
phrase-0.4.19 lib/phrase/engine.rb
phrase-0.4.18 lib/phrase/engine.rb
phrase-0.4.17 lib/phrase/engine.rb
phrase-0.4.16 lib/phrase/engine.rb
phrase-0.4.15 lib/phrase/engine.rb
phrase-0.4.14 lib/phrase/engine.rb
phrase-0.4.13 lib/phrase/engine.rb
phrase-0.4.12 lib/phrase/engine.rb