Sha256: 3cea31a98d2b92ce2123375a2a3e6fe56c78ff5c7682da9db28fa6cee16304d2

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Hancock::Seo
  module Admin

    def self.seo_n_sitemap_block(is_active = false, options = {})
      if is_active.is_a?(Hash)
        is_active, options = (is_active[:active] || false), is_active
      end

      Proc.new {
        active is_active
        label options[:label] || I18n.t('hancock.seo_n_sitemap')
        field :seo
        field :sitemap_data

        Hancock::RailsAdminGroupPatch::hancock_cms_group(self, options[:fields] || {})

        if block_given?
          yield self
        end
      }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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