Last active
April 24, 2020 09:13
-
-
Save m-k/73fa4becf8cda091a44d60571a806f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IssuesPresenter | |
attr_reader :issues, :filters | |
def initialize(issues, filters) | |
@issues, @filters = issues, filters | |
end | |
def has_selected_filters? | |
filter.any? | |
end | |
def all_issues_are_resolved? | |
issues.all?(:resolved?) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You missed the
:
beforefilters
in theattr_reader