|
|
@ -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
|
|
|
|