Commit 9a7e793467909e8c916ff3c5fe08b5e117cdaea3

Authored by gtaaas
1 parent 74a7982a
Exists in master and in 1 other branch devel

Corrige bug de salvar vídeos com ID do usuário errado

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/videos_controller.rb
... ... @@ -13,7 +13,7 @@ class VideosController < InheritedResources::Base
13 13 end
14 14 def create
15 15 @video = Video.new(params[:video])
16   - @video.user_id = current_user
  16 + @video.user = current_user
17 17  
18 18 create! {
19 19 if params[:video][:window_size].present?
... ...