Sha256: c70694234d3578ae13d9cc8653ab45bf11ca4b53d456a06a5ea610d6b9641841

Contents?: true

Size: 347 Bytes

Versions: 18

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

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

18 entries across 18 versions & 1 rubygems

Version Path
cmor_seo-0.0.60.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.59.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.58.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.57.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.56.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.55.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.54.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.53.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.52.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.51.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.50.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.49.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.48.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.45.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.44.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.43.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.42.pre app/models/cmor/seo/meta_tag.rb
cmor_seo-0.0.41.pre app/models/cmor/seo/meta_tag.rb