Untitled
public text v1 · immutableclass Carrier < ActiveRecord::Base
belongs_to :country
def self.find_by_country_code(code)
find(:all, :include => :country, :conditions => ["countries.code = ?", code])
end
endclass Carrier < ActiveRecord::Base
belongs_to :country
def self.find_by_country_code(code)
find(:all, :include => :country, :conditions => ["countries.code = ?", code])
end
end