applicake/doorkeeper — Issue #43: doorkeeper_for should accept conditionals :if / :unless
Author: jsmestad
Created: 2012-02-05 05:30:28+00:00
State: open

I have a use case where allowing doorkeeper_for to be conditional is very helpful.

```ruby
class ProfilesController < ApiController
doorkeeper_for :all, :if => { request.xhr? || format.html? }

def index
respond_with Profile.all do |format|
format.html # render documentation
format.json
end
end
end