Module: Pigeon::TagHelper
- Defined in:
- app/helpers/pigeon/tag_helper.rb
Instance Method Summary collapse
- #pigeon_channel_kinds_for_select ⇒ Object
- #pigeon_nuntium_channel_kinds_for_select ⇒ Object
- #pigeon_schema_options(schemas, value_prefix = '') ⇒ Object
- #pigeon_verboice_channel_kinds_for_select ⇒ Object
Instance Method Details
#pigeon_channel_kinds_for_select ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/helpers/pigeon/tag_helper.rb', line 11 def pigeon_channel_kinds_for_select ({ "Voice Channel" => (VerboiceChannel.schemas, 'verboice/'), "Message Channel" => (NuntiumChannel.schemas, 'nuntium/') }) end |
#pigeon_nuntium_channel_kinds_for_select ⇒ Object
7 8 9 |
# File 'app/helpers/pigeon/tag_helper.rb', line 7 def pigeon_nuntium_channel_kinds_for_select ((NuntiumChannel.schemas)) end |
#pigeon_schema_options(schemas, value_prefix = '') ⇒ Object
20 21 22 23 24 |
# File 'app/helpers/pigeon/tag_helper.rb', line 20 def (schemas, value_prefix = '') schemas.map do |c| [c.humanized_name, "#{value_prefix}#{c.kind}"] end.sort_by(&:first) end |
#pigeon_verboice_channel_kinds_for_select ⇒ Object
3 4 5 |
# File 'app/helpers/pigeon/tag_helper.rb', line 3 def pigeon_verboice_channel_kinds_for_select ((VerboiceChannel.schemas)) end |