Sha256: 36dfb822fe0c102a50096e832495eb943eec7b244d5f6ce4e48bb59547ee1866

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

require 'rails'
require 'manageable_content/controllers/dsl'
require 'manageable_content/manager'

module ManageableContent

  def self.table_name_prefix
    'manageable_content_'
  end

  class Engine < Rails::Engine
    initializer 'manageable_content.setup_locales' do |app|
      # Configures the managable locales available for the application.
      # This is used while generating pages; So, if the application needs a page version
      # for the English and Portuguese locales, the following should be set in an initializer:
      #
      #   ManageableContent::Engine.config.locales = [:en, :pt]
      #
      config.locales = [app.config.i18n.default_locale] unless config.locales.present?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
manageable_content-0.2.6 lib/manageable_content/engine.rb
manageable_content-0.2.5 lib/manageable_content/engine.rb