Sha256: 65eafe7802201d39e352cfc1c45bcfe1ea83077733a2743cdc6661820330c5a0

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 KB

Contents

# require "magic_locales/configuration"

require "app/models/magic_locales/association"
require "app/models/magic_locales"

# require "helpers/mgca_helper"

# require "magic_addresses/railtie" if defined?(Rails::Railtie)
require "magic_locales/rails" if defined?(Rails)

require "magic_locales/magic_locale_helper"
require "magic_locales/globalized_fields"
require "magic_locales/flag_helper"

module MagicLocales
  
  # models
  autoload :Language,           "app/models/magic_locales/language"
  autoload :Locale,             "app/models/magic_locales/locale"
  
  # controllers
  autoload :BaseController,     "app/controllers/magic_locales/base_controller"
  autoload :LocalesController,  "app/controllers/magic_locales/locales_controller"
  
  ### configuration
  # => class << self
  # =>   attr_accessor :configuration
  # =>   # Call this method to modify defaults in your initailizers.
  # =>   #   MagicAddresses.configure do |config|
  # =>   #     config.active_locales << :fr
  # =>   #   end
  # =>   def configure
  # =>     self.configuration ||= Configuration.new
  # =>     yield(configuration)
  # =>   end
  # => end
  
end

ActiveSupport.on_load(:active_record) do
  require 'globalize'
  require 'micromachine'
end

# ActionController::Base.prepend_view_path File.expand_path '../app/views', __FILE__
ActionController::Base.append_view_path File.expand_path '../app/views', __FILE__

ActiveRecord::Base.send :include, MagicLocales::Association

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
magic_locales-0.0.21 lib/magic_locales.rb
magic_locales-0.0.20 lib/magic_locales.rb
magic_locales-0.0.19 lib/magic_locales.rb
magic_locales-0.0.18 lib/magic_locales.rb
magic_locales-0.0.17 lib/magic_locales.rb
magic_locales-0.0.17.beta2 lib/magic_locales.rb
magic_locales-0.0.17.beta1 lib/magic_locales.rb
magic_locales-0.0.16 lib/magic_locales.rb
magic_locales-0.0.15 lib/magic_locales.rb
magic_locales-0.0.14 lib/magic_locales.rb
magic_locales-0.0.13 lib/magic_locales.rb
magic_locales-0.0.12 lib/magic_locales.rb
magic_locales-0.0.11 lib/magic_locales.rb
magic_locales-0.0.10 lib/magic_locales.rb
magic_locales-0.0.9 lib/magic_locales.rb
magic_locales-0.0.8 lib/magic_locales.rb
magic_locales-0.0.7 lib/magic_locales.rb