Skip to content

Commit

Permalink
Added gem_dependency_check
Browse files Browse the repository at this point in the history
  • Loading branch information
dsander committed Dec 27, 2014
1 parent 292f455 commit 4873b0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/agents/wunderlist_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ class WunderlistAgent < Agent

cannot_be_scheduled!

gem_dependency_check { Devise.omniauth_providers.include?(:wunderlist) }

description <<-MD
#{'## Include the `omniauth-wunderlist` gem in your `Gemfile` and set `WUNDERLIST_OAUTH_KEY` and `WUNDERLIST_OAUTH_SECRET` in your environment to use this Agent' if dependencies_missing?}
The WunderlistAgent creates new new tasks based on the incoming event.
To be able to use this Agent you need to authenticate with Wunderlist in the [Services](/services) section first.
Expand Down

0 comments on commit 4873b0b

Please sign in to comment.