Module: ComplaintsHelper

Defined in:
/var/apps/qpixel/app/helpers/complaints_helper.rb

Instance Method Summary collapse

Instance Method Details

#content_type(key) ⇒ Object



6
7
8
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 6

def content_type(key)
  value_for('content_types', key)
end

#content_typesObject



2
3
4
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 2

def content_types
  value_for('content_types') || []
end

#content_types_select_optionsObject



10
11
12
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 10

def content_types_select_options
  select_options_for('content_types')
end

#enabled_report_typesObject



34
35
36
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 34

def enabled_report_types
  report_types.select { |_k, t| t['enabled'] }
end

#outcome(key) ⇒ Object



18
19
20
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 18

def outcome(key)
  value_for('outcomes', key)
end

#outcomes_select_optionsObject



14
15
16
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 14

def outcomes_select_options
  select_options_for('outcomes')
end

#report_type(key) ⇒ Object



30
31
32
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 30

def report_type(key)
  value_for('report_types', key)
end

#report_typesObject



22
23
24
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 22

def report_types
  value_for('report_types') || []
end

#report_types_select_optionsObject



26
27
28
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 26

def report_types_select_options
  select_options_for('report_types')
end

#status(key) ⇒ Object



46
47
48
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 46

def status(key)
  value_for('statuses', key)
end

#statusesObject



38
39
40
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 38

def statuses
  value_for('statuses') || []
end

#statuses_select_optionsObject



42
43
44
# File '/var/apps/qpixel/app/helpers/complaints_helper.rb', line 42

def statuses_select_options
  select_options_for('statuses')
end