Class: FitterHappier::HeartbeatController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- FitterHappier::HeartbeatController
- Defined in:
- app/controllers/fitter_happier/heartbeat_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 7 def index render plain: "FitterHappier Site Check Passed\n" end |
#site_and_database_check ⇒ Object
17 18 19 20 21 22 |
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 17 def site_and_database_check version = DatabaseCheck.schema_version time = Time.now.to_formatted_s(:rfc822) render plain: "FitterHappier Site and Database Check Passed @ #{time}\nSchema Version: #{version}\n" end |
#site_check ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/fitter_happier/heartbeat_controller.rb', line 11 def site_check time = Time.now.to_formatted_s(:rfc822) render plain: "FitterHappier Site Check Passed @ #{time}\n" end |