Sha256: 246c995cbf5f597989b36c66ba8bd8030d063d25fcd1ea6766f6899bd6f08f9e
Contents?: true
Size: 937 Bytes
Versions: 9
Compression:
Stored size: 937 Bytes
Contents
module Enjoy module Admin module SitemapData def self.config(is_active = false, fields = {}) Proc.new { navigation_label 'SEO' label I18n.t('enjoy.sitemap_data') field :sitemap_data_field do read_only true end field :sitemap_show, :toggle field :sitemap_lastmod field :sitemap_changefreq, :enum do enum do Enjoy::SitemapData::SITEMAP_CHANGEFREQ_ARRAY end end field :sitemap_priority fields.each_pair do |name, type| if type.nil? field name else if type.is_a?(Array) field name, type[0], &type[1] else field name, type end end end if block_given? yield self end } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems