Method: Heart::MetricsController#show
- Defined in:
- app/controllers/heart/metrics_controller.rb
#show ⇒ Object
10 11 12 13 14 15 |
# File 'app/controllers/heart/metrics_controller.rb', line 10 def show #restrict the range of dates to prevent a lot useless metric records params[:fulldate] = Date.yesterday unless params[:fulldate] <= Date.yesterday.to_s @metric = Heart::Metric.find_or_create(params[:fulldate],0) @isometric = Heart::Isometric.find_or_create(params[:fulldate],0) end |