Sha256: 303fa6a2ef08b66d1f5e00071e01cac0307d2f318dbbddb26622fa673cb815c3

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

module Hancock::Seo
  include Hancock::PluginConfiguration

  def self.config_class
    Configuration
  end

  class Configuration
    attr_accessor :localize

    attr_accessor :gallery_support
    attr_accessor :cache_support

    attr_accessor :model_settings_support
    attr_accessor :user_abilities_support
    attr_accessor :ra_comments_support

    def initialize
      @localize = Hancock.config.localize

      @gallery_support = !!defined?(Hancock::Gallery)
      @cache_support  = !!defined?(Hancock::Cache)

      @model_settings_support = !!defined?(RailsAdminModelSettings)
      @user_abilities_support = !!defined?(RailsAdminUserAbilities)
      @ra_comments_support = !!defined?(RailsAdminComments)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hancock_cms_seo-1.0.2 lib/hancock/seo/configuration.rb