Skip to content

Instantly share code, notes, and snippets.

@michaeldv
Forked from edavis10/guard_refactor.rb
Created March 23, 2010 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldv/340715 to your computer and use it in GitHub Desktop.
Save michaeldv/340715 to your computer and use it in GitHub Desktop.
# @settings and anything in it could be nil or blank at any time
def get_backlog_issues(exclude_ids=[])
return [[]] unless @settings.present? &&
@settings['panes'].present? &&
@settings['panes']['backlog'].present? &&
@settings['panes']['backlog']['status'].present? &&
@settings['panes']['backlog']['limit'].present?
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment