Sha256: 09b1c35779abe4cc57d4628ef67f38dd8296afc5c4ea635448bc0b6f631e565d

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'rails'
require 'sunrise-locales'

module Sunrise
  module Locales
    class Engine < ::Rails::Engine
      config.before_initialize do
        Sunrise::Plugin.register :locales do |plugin|
          plugin.model = 'sunrise/yml_locale'
          plugin.menu = 'select'
          plugin.version = Sunrise::Locales::VERSION.dup
          plugin.klass = Sunrise::YmlLocale
        end
        
        Sunrise::Plugins.activate(:locales)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunrise-locales-0.1.0 lib/sunrise/locales/engine.rb