Sha256: 88810ddeb78adc8c98c804694cc05f615cf8e9d29ecac2e00c60ebf3d657d6ac
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module ProfileFieldTypes # Homepage Field # class Homepage < ProfileField def self.model_name; ProfileField.model_name; end def display_html url = self.value || '' url = "http://#{url}" unless url.starts_with? 'http://' or url == "—" if url.starts_with?( "http://" ) ActionController::Base.helpers.link_to url, url else url end end end end
Version data entries
3 entries across 3 versions & 1 rubygems