Class: Enjoy::Faq::Configuration
- Inherits:
-
Object
- Object
- Enjoy::Faq::Configuration
- Defined in:
- lib/enjoy/faq/configuration.rb
Instance Attribute Summary collapse
-
#author_name_required ⇒ Object
Returns the value of attribute author_name_required.
-
#captcha_error_message ⇒ Object
Returns the value of attribute captcha_error_message.
-
#default_answer_author_name ⇒ Object
Returns the value of attribute default_answer_author_name.
-
#localize ⇒ Object
Returns the value of attribute localize.
-
#recaptcha_support ⇒ Object
Returns the value of attribute recaptcha_support.
-
#save_with_captcha ⇒ Object
Returns the value of attribute save_with_captcha.
-
#seo_support ⇒ Object
Returns the value of attribute seo_support.
-
#simple_captcha_support ⇒ Object
Returns the value of attribute simple_captcha_support.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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 = true = "Администрация сайта" @save_with_captcha = true = "Код с картинки введен неверно" @recaptcha_support = defined?(Recaptcha) @simple_captcha_support = defined?(SimpleCaptcha) @seo_support = defined?(Enjoy::Seo) = defined?(BreadcrumbsOnRails) @localize = Enjoy.config.localize end |
Instance Attribute Details
#author_name_required ⇒ Object
Returns the value of attribute author_name_required.
15 16 17 |
# File 'lib/enjoy/faq/configuration.rb', line 15 def end |
#captcha_error_message ⇒ Object
Returns the value of attribute captcha_error_message.
20 21 22 |
# File 'lib/enjoy/faq/configuration.rb', line 20 def end |
#default_answer_author_name ⇒ Object
Returns the value of attribute default_answer_author_name.
17 18 19 |
# File 'lib/enjoy/faq/configuration.rb', line 17 def end |
#localize ⇒ Object
Returns the value of attribute localize.
27 28 29 |
# File 'lib/enjoy/faq/configuration.rb', line 27 def localize @localize end |
#recaptcha_support ⇒ Object
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_captcha ⇒ Object
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_support ⇒ Object
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_support ⇒ Object
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 |