Sha256: 1666087a1649ab828bd8b3c69446f6d4448c108a019d4c1c73b29cc81c936d12

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module Cmor::Seo
  class MetaTag < ApplicationRecord
    include ActsAsPublished::ActiveRecord
    
    belongs_to :item

    acts_as_list scope: :item
    acts_as_published

    def to_html
      "<meta name=\"#{name}\" content=\"#{content}\" />"
    end

    def human
      "#{item.human}: #{name}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmor_seo-0.0.40.pre app/models/cmor/seo/meta_tag.rb