Files
componentowl-rails-archive/app/helpers/uninstall_helper.rb

11 lines
362 B
Ruby
Raw Normal View History

module UninstallHelper
#buga> tohle by melo byt jen docasne reseni (vysoce nekonzistentni)
def uninstall_issues(product)
stdl_issues = ['no-phone-sync', 'no-outlook-sync']
issues = UninstallIssue.all
issues = issues.delete_if {|r| stdl_issues.include?(r.code) } unless product.is_featured?
issues.map {|r| [r.display_name, r.id] }
end
end