Commit fb58c655938ad6d29e18d55309ff04e9cd3e0396

Authored by gtaaas
2 parents 367854ab 9a7e7934
Exists in master and in 1 other branch devel

Merging [ID correto no vídeo]

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?
... ...