Sha256: 0bd03e21bf15bf28eb35795fbcc0fc5499d3252e688090b4c1308c879e4a4972

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require "hancock/seo/version"

require 'sitemap_generator'
require 'rails_admin_sitemap'
require 'rails_admin_robots_txt'

require 'hancock/seo/configuration'
require 'hancock/seo/engine'


module Hancock::Seo
  include Hancock::Plugin

  class << self
    def clear_empty_objects
      [Hancock::Seo::Seo, Hancock::Seo::SitemapData].map { |model|
        model.clear_empty_objects
      }
    end
  end

  autoload :Admin,  'hancock/seo/admin'
  module Admin
    autoload :SitemapData,  'hancock/seo/admin/sitemap_data'
    autoload :Seo,          'hancock/seo/admin/seo'
  end

  module Models
    autoload :SitemapData,  'hancock/seo/models/sitemap_data'
    autoload :Seo,          'hancock/seo/models/seo'

    module Mongoid
      autoload :SitemapData,  'hancock/seo/models/mongoid/sitemap_data'
      autoload :Seo,          'hancock/seo/models/mongoid/seo'
    end

    module ActiveRecord
      autoload :SitemapData,  'hancock/seo/models/active_record/sitemap_data'
      autoload :Seo,          'hancock/seo/models/active_record/seo'
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hancock_cms_seo-1.0.2 lib/hancock_cms_seo.rb