Sha256: cbd32d0c0e1526cffa2e4893865c7cbfa94ec97a4fcabf92a5b4498caa8ba19f
Contents?: true
Size: 381 Bytes
Versions: 6
Compression:
Stored size: 381 Bytes
Contents
class SiteDetail < ActiveRecord::Base before_save :downcase_site_url def self.get_site_id result = self.first.site_id.to_i unless self.first.blank? return result end def self.get_url @site_url ||= self.first.site_url.downcase unless self.first.blank? end private def downcase_site_url self.site_url.downcase! unless self.site_url.blank? end end
Version data entries
6 entries across 6 versions & 1 rubygems