Sha256: 050fbd5fab8e99d0b0141dae880bc3c26ae94d43c4d24b9afd8e9c5c5306b491

Contents?: true

Size: 349 Bytes

Versions: 16

Compression:

Stored size: 349 Bytes

Contents

module ApplicationHelper

  # When on .mrhenry.eu domain, we don't want a search crawler to index
  #
  # @return {String}
  def meta_name_robots
    if request.host.match /.*\.a\.mrhenry\.eu.*/
      tag("meta", name: "robots", content: "noindex, nofollow")

    else
      tag("meta", name: "robots", content: "index, follow")

    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.416 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.407 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.396 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.395 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.393 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.389 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.388 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.387 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.386 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.385 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.384 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.382 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.381 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.376 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.1.0.dev.375 lib/generators/lalala/install/templates/helpers/application_helper.rb
lalala-4.0.0.dev.374 lib/generators/lalala/install/templates/helpers/application_helper.rb