dev_partners
cxt 6 years ago
parent cb8b80efe9
commit c28692ffc5

@ -64,7 +64,7 @@ class School < ActiveRecord::Base
def statistic_url def statistic_url
dep = departments.where("identifier is not null").first dep = departments.where("identifier is not null").first
url = dep.present? ? "/colleges/#{dep.identifier}/statistics" : "/colleges/#{self.id}/statistics" url = dep.present? && !dep.identifier.blank? ? "/colleges/#{dep.identifier}/statistics" : "/colleges/#{self.id}/statistics"
end end
def course_act_time def course_act_time

Loading…
Cancel
Save