Skip to content

Commit

Permalink
Re-factor the Textual tags call
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Apr 27, 2017
1 parent 4b79e74 commit 2f0602f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
4 changes: 1 addition & 3 deletions app/helpers/container_build_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ def textual_group_relationships
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

def textual_group_build_instances
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/container_group_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def textual_group_conditions
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

@@key_dictionary = [
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/container_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def textual_group_relationships
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

#
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/container_image_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def textual_group_configuration
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

def textual_group_openscap_failed_rules
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/container_project_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def textual_group_relationships
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

def textual_group_quota
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/container_replicator_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ def textual_group_relationships
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

#
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/persistent_volume_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ def textual_group_relationships
end

def textual_group_smart_management
items = %w(tags)
i = items.collect { |m| send("textual_#{m}") }.flatten.compact
TextualTags.new(_("Smart Management"), i)
TextualTags.new(_("Smart Management"), %i(tags))
end

def textual_group_capacity
Expand Down

0 comments on commit 2f0602f

Please sign in to comment.