fix chart params

This commit is contained in:
Lee Lawlor 2015-02-05 16:54:06 -05:00
parent ac85a78dc3
commit 2a507428cf

View File

@ -42,7 +42,7 @@ class ChartsController < ApplicationController
def show def show
# allow these parameters when creating feed querystring # allow these parameters when creating feed querystring
feed_params = ['key', 'api_key', 'apikey', 'days','start','end','round','timescale','average','median','sum','results','location','status','timezone'] feed_params = ['key', 'api_key', 'apikey', 'days','start','end','round','timescale','average','median','sum','results','location','status','timezone','offset','min','max']
# set chart size # set chart size
width = params[:width].present? ? params[:width] : Chart.default_width width = params[:width].present? ? params[:width] : Chart.default_width