Sha256: ac493a96a23f59e3eb786b6583a32addac05cf7eac684101aeb826b5dfd1c54a

Contents?: true

Size: 241 Bytes

Versions: 4

Compression:

Stored size: 241 Bytes

Contents

module Noindex

  module ViewHelpers

    def noindex_meta_tag
      tag(:meta, name: 'robots', content: 'noindex') if @noindex
    end

    def noindex
      @noindex = true
    end

    def index
      @noindex = false
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noindex-0.0.4 lib/noindex/view_helpers.rb
noindex-0.0.3 lib/noindex/view_helpers.rb
noindex-0.0.2 lib/noindex/view_helpers.rb
noindex-0.0.1 lib/noindex/view_helpers.rb