Skip to content

Commit

Permalink
Refactor: substitute the algorithm for checking the settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed Mar 23, 2010
1 parent c084075 commit cd0cd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/stuff_to_do.rb
Expand Up @@ -79,11 +79,11 @@ def self.available(user, filter = { })
end

def self.using_projects_as_items?
use_setting == 'All' || use_setting == 'Only Projects'
['All', 'Only Projects'].include?(use_setting)
end

def self.using_issues_as_items?
use_setting == 'All' || use_setting == 'Only Issues'
['All', 'Only Issues'].include?(use_setting)
end

# Callback used to destroy all StuffToDos when an object is removed and
Expand Down

0 comments on commit cd0cd9e

Please sign in to comment.