lib/oauth/controllers/application_controller_methods.rb in oauth-plugin-0.3.10 vs lib/oauth/controllers/application_controller_methods.rb in oauth-plugin-0.3.11

- old
+ new

@@ -16,9 +16,14 @@ def oauthenticate verified=verify_oauth_signature return verified && current_token.is_a?(::AccessToken) end + # Skip the authenticity filter if we have an oauth token + def verify_authenticity_token + super unless oauth? + end + def oauth? current_token!=nil end # use in a before_filter \ No newline at end of file