Sha256: f1f62f5ec4462f3f1ae0d4db2b3afb900fde217f5dd5a6a18c28e108f3fe0601

Contents?: true

Size: 780 Bytes

Versions: 5

Compression:

Stored size: 780 Bytes

Contents

require "haml"
require "string-cases"
require "array_enumerator"
require "jquery-rails"

module AwesomeTranslations
  path = "#{File.dirname(__FILE__)}/awesome_translations"

  autoload :Config, "#{path}/config"
  autoload :ErbInspector, "#{path}/erb_inspector"
  autoload :GlobalTranslator, "#{path}/global_translator"
  autoload :Handlers, "#{path}/handlers"
  autoload :ModelInspector, "#{path}/model_inspector"
  autoload :ObjectExtensions, "#{path}/object_extensions"
  autoload :TranslateFunctionality, "#{path}/translate_functionality"

  def self.config
    @config ||= AwesomeTranslations::Config.new
  end

  def self.load_object_extensions
    ::Object.__send__(:include, AwesomeTranslations::ObjectExtensions)
  end
end

require_relative "awesome_translations/engine"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awesome_translations-0.0.15 lib/awesome_translations.rb
awesome_translations-0.0.14 lib/awesome_translations.rb
awesome_translations-0.0.13 lib/awesome_translations.rb
awesome_translations-0.0.12 lib/awesome_translations.rb
awesome_translations-0.0.10 lib/awesome_translations.rb