Sha256: a39f234cdff580909914ab9ed1968ecc15fe4dd0d52640c7ffe483f635ae2c41

Contents?: true

Size: 617 Bytes

Versions: 9

Compression:

Stored size: 617 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'phraseapp-in-context-editor-ruby'
require 'i18n'

if defined? Rails
  module PhraseApp
    module InContextEditor
      class Engine < Rails::Engine
        initializer 'phraseapp-in-context-editor-ruby', after: :disable_dependency_loading do |app|
          if PhraseApp::InContextEditor.enabled?
            require 'phraseapp-in-context-editor-ruby/adapters/i18n'
            require 'phraseapp-in-context-editor-ruby/adapters/fast_gettext'
          end

          ActionView::Base.send :include, PhraseApp::InContextEditor::ViewHelpers
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-1.0.5 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.4 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.3 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.2 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.0rc3 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.0rc2 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.0.0rc1 lib/phraseapp-in-context-editor-ruby/engine.rb