class SafeUrl

	def before_save(record)
		record.safe_url = SecureRandom.urlsafe_base64(12, false) if record.safe_url.blank?
	end

end