Sha256: 0e260763864113d7935e8a380597c608db1207d8016480267c5458d01bf0d4f6

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

module Meta2
  class Railtie < Rails::Railtie
    config.meta2 = ActiveSupport::OrderedOptions.new

    initializer 'meta2' do |app|
      config = app.config.meta2

      # Default settings. all subject can be changed.
      config.strategy         = :i18n
      config.assign_name      = :meta2
      config.sections         = %w{formats defaults parts}
      config.columns          = %w{title description keywords}
      config.logger           = Rails.logger
      config.logging          = true
      config.controller_base  = 'ApplicationController'
      config.per_for_paginate = 20
      config.session_name     = '___current_meta2_app_name___'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meta2-0.0.3 lib/meta2/railtie.rb
meta2-0.0.2 lib/meta2/railtie.rb