|
|
|
@ -34,6 +34,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
class_attribute :accept_rss_auth_actions
|
|
|
|
|
class_attribute :model_object
|
|
|
|
|
|
|
|
|
|
before_filter :update_system
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# skip_before_filter :verify_authenticity_token,
|
|
|
|
@ -1113,4 +1114,10 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
end
|
|
|
|
|
true
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update_system
|
|
|
|
|
redirect_to "https://www.educoder.net/update.html" if Time.now > Time.new(2019, 4, 23) &&
|
|
|
|
|
Time.now < Time.new(2019, 4, 23, 2)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|