Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
6702185011
@ -0,0 +1,2 @@
|
|||||||
|
class SystemUpdateNotice < ApplicationRecord
|
||||||
|
end
|
@ -0,0 +1,6 @@
|
|||||||
|
if @notice && @notice.end_time > Time.now
|
||||||
|
json.system_update true
|
||||||
|
json.(@notice, :subject, :notes, :start_time, :end_time)
|
||||||
|
else
|
||||||
|
json.system_update false
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe SystemUpdateNotice, type: :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
Loading…
Reference in new issue