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



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/seorel/configuration.rb', line 28

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_image = nil
  self.store_seorel_if = :empty
  self.default_og_metas = {}
  self.default_twitter_metas = {}
end

#param_nameObject



19
20
21
# File 'lib/seorel/configuration.rb', line 19

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