Permalink
Browse files

Turned off protect_from_forgery for create statuses to allow for API …

…calls
  • Loading branch information...
1 parent 1fd3a35 commit e4fc8dca215b4cb8f9526419b13dd31154caad95 @skalnik skalnik committed Jul 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/statuses_controller.rb
@@ -2,6 +2,7 @@
class StatusesController < ApplicationController
before_filter :find_status, :only => [:show, :edit, :update, :destroy]
before_filter :login_required
+ protect_from_forgery :except => :create
# USER SCOPE
@@ -152,4 +153,4 @@ def user_status_for(status)
@user ? @user.id : nil
end
-end
+end

0 comments on commit e4fc8dc

Please sign in to comment.