Sha256: 71ed8c342b2d12cce613fdc65cc0271b99052a67ef02003fd45f06622430066f

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 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', before: :disable_dependency_loading do |app|
          require 'phraseapp-in-context-editor-ruby/adapters/i18n'
          require 'phraseapp-in-context-editor-ruby/adapters/fast_gettext'

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-1.4.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.3.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.3.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.2.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.2.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-1.1.0 lib/phraseapp-in-context-editor-ruby/engine.rb