intra_app/app/models/i_website.rb
Nicolas Bally 3075c2ab63 suite
2019-05-20 22:35:16 +02:00

11 lines
223 B
Ruby

class IWebsite < ActiveRecord::Base
belongs_to :p_customer
has_many :i_tasks
def show_name
self.name.to_s+(" - "+self.url.to_s if self.url?).to_s+(" - "+self.prov_url.to_s if self.prov_url?).to_s
end
end