Sha256: c7e072c187770c65f248cdc85383b158a82c032fb1b38888af537ce56f81457d

Contents?: true

Size: 922 Bytes

Versions: 4

Compression:

Stored size: 922 Bytes

Contents

module Enjoy::Seo
  module Admin
    module Seo
      def self.config(is_active = true, fields = {})
        Proc.new {
          navigation_label 'SEO'
          field :seoable do
            read_only true
          end
          field :h1, :string do
            searchable true
          end
          field :title, :string do
            searchable true
          end
          field :keywords, :text do
            searchable true
          end
          field :description, :text do
            searchable true
          end
          field :robots, :string

          field :og_title, :string do
            searchable true
          end

          if Enjoy::Seo.config.gallery_support
            field :og_image, :enjoy_image
          end

          Enjoy::RailsAdminGroupPatch::enjoy_cms_group(self, fields)

          if block_given?
            yield self
          end
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enjoy_cms_seo-0.4.1 lib/enjoy/seo/admin/seo.rb
enjoy_cms_seo-0.4.0.3 lib/enjoy/seo/admin/seo.rb
enjoy_cms_seo-0.4.0.2 lib/enjoy/seo/admin/seo.rb
enjoy_cms_seo-0.4.0.1 lib/enjoy/seo/admin/seo.rb