Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change sort proc behavior #18

Merged
merged 3 commits into from
Jun 26, 2015
Merged

Change sort proc behavior #18

merged 3 commits into from
Jun 26, 2015

Conversation

ajb
Copy link
Contributor

@ajb ajb commented Jun 26, 2015

sort procs now return strings.

cf https://github.com/dobtco/screendoor-v2/issues/2143

@@ -271,7 +293,7 @@ def starting_query
FakeQuery.new
end

sort_option 'whoop', -> (q, matches) { q }, tiebreaker: true
sort_option 'whoop', -> (matches) { nil }, tiebreaker: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused block argument - matches. If it's necessary, use _ or _matches as an argument name to indicate that it won't be used. Also consider using a proc without arguments instead of a lambda if you want it to accept any arguments but don't care about them.

ajb added a commit that referenced this pull request Jun 26, 2015
@ajb ajb merged commit 854f8be into master Jun 26, 2015
@ajb ajb deleted the change-sort-proc-behavior branch June 26, 2015 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants