module Enjoy::Seo::Admin::Seo
Public Class Methods
config(is_active = true, fields = {}) { |self| ... }
click to toggle source
# File lib/enjoy/seo/admin/seo.rb, line 4 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