Class: Enjoy::Faq::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/enjoy/faq/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/enjoy/faq/configuration.rb', line 29

def initialize
  @author_name_required = true

  @default_answer_author_name  = "Администрация сайта"

  @save_with_captcha = true
  @captcha_error_message = "Код с картинки введен неверно"

  @recaptcha_support = defined?(Recaptcha)
  @simple_captcha_support = defined?(SimpleCaptcha)

  @seo_support = defined?(Enjoy::Seo)

  @breadcrumbs_on_rails_support = defined?(BreadcrumbsOnRails)

  @localize = Enjoy.config.localize
end

Instance Attribute Details

#author_name_requiredObject

Returns the value of attribute author_name_required.



15
16
17
# File 'lib/enjoy/faq/configuration.rb', line 15

def author_name_required
  @author_name_required
end

#captcha_error_messageObject

Returns the value of attribute captcha_error_message.



20
21
22
# File 'lib/enjoy/faq/configuration.rb', line 20

def captcha_error_message
  @captcha_error_message
end

#default_answer_author_nameObject

Returns the value of attribute default_answer_author_name.



17
18
19
# File 'lib/enjoy/faq/configuration.rb', line 17

def default_answer_author_name
  @default_answer_author_name
end

#localizeObject

Returns the value of attribute localize.



27
28
29
# File 'lib/enjoy/faq/configuration.rb', line 27

def localize
  @localize
end

#recaptcha_supportObject

Returns the value of attribute recaptcha_support.



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

def recaptcha_support
  @recaptcha_support
end

#save_with_captchaObject

Returns the value of attribute save_with_captcha.



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

def save_with_captcha
  @save_with_captcha
end

#seo_supportObject

Returns the value of attribute seo_support.



25
26
27
# File 'lib/enjoy/faq/configuration.rb', line 25

def seo_support
  @seo_support
end

#simple_captcha_supportObject

Returns the value of attribute simple_captcha_support.



23
24
25
# File 'lib/enjoy/faq/configuration.rb', line 23

def simple_captcha_support
  @simple_captcha_support
end