Skip to content

Commit

Permalink
Add user microposts
Browse files Browse the repository at this point in the history
  • Loading branch information
baniani committed Dec 28, 2013
1 parent f29c0d2 commit 37fcf0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/microposts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class MicropostsController < ApplicationController
before_action :signed_in_user
before_action :signed_in_user, only: [:create, :destroy]
before_action :correct_user, only: :destroy

def create
@micropost = current_user.microposts.build(micropost_params)
Expand Down

0 comments on commit 37fcf0b

Please sign in to comment.