Sha256: 535ae8cf13e2f3e15dcf3df886d9ccec60a9b5705b3382d815ccd3e45244bebe

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

class ChartsController < ApplicationController
  def update
    @chart = Chart.find(params[:id])
    authorize! :edit, @chart
    @chart.update_attributes_from_params(params[:chart])
    flash[:notice] = "Prices saved!"
    redirect_to prices_event_url(@chart.event)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artfully_ose-1.0.0.rc4 app/controllers/charts_controller.rb
artfully_ose-1.0.0.rc3 app/controllers/charts_controller.rb