9 lines
313 B
Ruby
9 lines
313 B
Ruby
|
module Admin::TechnologyTransfersHelper
|
||
|
def page_for_technology_transfer(course_object)
|
||
|
page = nil
|
||
|
pages = Page.where(:module=>"technology_transfer")
|
||
|
|
||
|
page = pages.first if page.nil?
|
||
|
request.protocol+(request.host_with_port+page.url+'/'+course_object.to_param).gsub('//','/') rescue "/"
|
||
|
end
|
||
|
end
|