Sha256: 86233bf9c1e1535d010b2800119532ed2c64950b0f81bda4c7f9983f6ca1bca0
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require "rails/meta_tags/version" module Rails module MetaTags autoload :ControllerMethods, 'rails/meta_tags/controller_methods' autoload :Builder, 'rails/meta_tags/builder' autoload :Config, 'rails/meta_tags/config' autoload :ModelSupport, 'rails/meta_tags/model_support' PROPERTIES = [ :title, :type, :image, :image_width, :image_height, :url, :description, :audio, :determiner, :locale, :site_name, :video, :keywords, :robots, :creator, :subject, :publisher, :created, :identifier, :language, :content_type, :viewport ] mattr_accessor :seperator @@seperator = " | " def self.config yield self end def self.defaults @defaults ||= Config.new end # default config defaults.site_name "SITE" defaults.type "website" defaults.content_type "text/html; charset=utf-8" defaults.created { |c| Time.new.strftime('%Y-%m-%d') } defaults.language { |c| I18n.locale.to_s } defaults.identifier { |c| c.request.url } defaults.url { |c| c.request.url } defaults.viewport "width=device-width" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_meta_tags-0.3.1 | lib/rails/meta_tags.rb |