refactor chart windows

This commit is contained in:
Lee Lawlor
2014-08-02 14:36:38 -04:00
parent b598a83e37
commit 5789de8f1d
3 changed files with 42 additions and 38 deletions

View File

@ -217,7 +217,7 @@ class ChannelsController < ApplicationController
params[:channel] = params
channel.update_attributes(channel_params)
channel.set_windows
channel.set_windows(true)
channel.save
channel.save_tags(params[:channel][:tags]) if params[:channel][:tags].present?
channel.add_write_api_key