Class: Enjoy::Feedback::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @captcha = false
  @fields = {}
  @message_required = true

  @captcha_error_message = "Код проверки введен неверно"
  @no_contact_info_error_message = "Пожалуйста введите Ваш e-mail или телефон, чтобы мы могли связаться с вами."

  @recreate_contact_message_action = "new"

  @breadcrumbs_on_rails_support = defined?(BreadcrumbsOnRails)

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

Instance Attribute Details

Returns the value of attribute breadcrumbs_on_rails_support.



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

def breadcrumbs_on_rails_support
  @breadcrumbs_on_rails_support
end

#captchaObject

Returns the value of attribute captcha.



14
15
16
# File 'lib/enjoy/feedback/configuration.rb', line 14

def captcha
  @captcha
end

#captcha_error_messageObject

Returns the value of attribute captcha_error_message.



18
19
20
# File 'lib/enjoy/feedback/configuration.rb', line 18

def captcha_error_message
  @captcha_error_message
end

#fieldsObject

Returns the value of attribute fields.



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

def fields
  @fields
end

#message_requiredObject

Returns the value of attribute message_required.



16
17
18
# File 'lib/enjoy/feedback/configuration.rb', line 16

def message_required
  @message_required
end

#no_contact_info_error_messageObject

Returns the value of attribute no_contact_info_error_message.



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

def no_contact_info_error_message
  @no_contact_info_error_message
end

#recaptcha_supportObject

Returns the value of attribute recaptcha_support.



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

def recaptcha_support
  @recaptcha_support
end

#recreate_contact_message_actionObject

Returns the value of attribute recreate_contact_message_action.



21
22
23
# File 'lib/enjoy/feedback/configuration.rb', line 21

def recreate_contact_message_action
  @recreate_contact_message_action
end

#simple_captcha_supportObject

Returns the value of attribute simple_captcha_support.



26
27
28
# File 'lib/enjoy/feedback/configuration.rb', line 26

def simple_captcha_support
  @simple_captcha_support
end