license_helper.rb 262 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 module LicenseHelper def self.getListLicenses licenses = LicenseInfo.select{|license| license.version != "Another"} licenses end def self.getAnotherLicense license_another = LicenseInfo.find_by_version("Another") license_another end end