|
|
|
@ -10,7 +10,7 @@ module Mobile
|
|
|
|
|
else
|
|
|
|
|
c = f[:course]
|
|
|
|
|
end
|
|
|
|
|
if field == :img_url
|
|
|
|
|
if f.is_a?(Hash) && f.key?(field)
|
|
|
|
|
f[field] if f.is_a?(Hash) && f.key?(field)
|
|
|
|
|
#f.img_url if f.respond_to?(:img_url)
|
|
|
|
|
elsif field == :created_at || field == :updated_at
|
|
|
|
@ -56,6 +56,8 @@ module Mobile
|
|
|
|
|
expose :my_homework,using: Mobile::Entities::HomeworkAttach do |f, opt|
|
|
|
|
|
f[:my_homework] if f.is_a?(Hash) && f.key?(:my_homework)
|
|
|
|
|
end
|
|
|
|
|
course_expose :current_user_is_member
|
|
|
|
|
course_expose :current_user_is_teacher
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|