Class: Seorel::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/seorel/configuration.rb

Instance Method Summary collapse

Instance Method Details

#initialize_defaultsObject



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/seorel/configuration.rb', line 32

def initialize_defaults
  self.default_prepend_title = nil
  self.default_title = nil
  self.default_append_title = nil
  self.default_prepend_description = nil
  self.default_description = nil
  self.default_append_description = nil
  self.default_keywords = {}
  self.default_image = nil
  self.store_seorel_if = :empty
  self.default_og_metas = {}
  self.default_twitter_metas = {}
end

#param_nameObject



22
23
24
# File 'lib/seorel/configuration.rb', line 22

def param_name
  config.param_name.respond_to?(:call) ? config.param_name.call : config.param_name
end