Sha256: c9c0e643dfc0a7b5341c30b48c9ad88c0390e9eda630a535bb6e3141f0205310

Contents?: true

Size: 891 Bytes

Versions: 2

Compression:

Stored size: 891 Bytes

Contents

require 'active_support/dependencies'
require 'meta2/engine'

module Meta2
  autoload :Absorber,   'meta2/absorber'
  autoload :Strategies, 'meta2/strategies'
  autoload :Resolver,   'meta2/resolver'
  autoload :Version,    'meta2/version'

  module Helpers
    autoload :ActionViewExtension, 'meta2/helpers/action_view_extension'
  end

  module Models
    autoload :MetaSetting,  'meta2/models/meta_setting'
  end

  module Strategies
    autoload :I18n,         'meta2/strategies/i18n'
    autoload :ActiveRecord, 'meta2/strategies/active_record'
  end

  class << self
    def configure
      yield self.config
    end

    def config
      Rails.application.config.meta2
    end

    def debug(message)
      return unless self.config.logging
      self.config.logger.debug "[META2] #{message}"
    end
  end
end

if defined? Rails
  require 'meta2/rails'
  require 'meta2/railtie'
end

Version data entries

2 entries across 2 versions & 1 rubygems

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