-
Notifications
You must be signed in to change notification settings - Fork 113
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
Rails 4.1.1 #415
Rails 4.1.1 #415
Conversation
The permit matcher now conflicts with the shoulda permit matcher this renames the permit matcher to permit_authorization to prevent this conflict and to make intentions a bit more clear.
To prevent the validates_uniqueness matcher from raising a chef version constraint error this pins shoulda-matchers at a commit where setting default values for scopes was reverted, we can remove this ref once it's released to rubygems.
@@ -55,6 +55,8 @@ def search | |||
@results = Cookbook.search( | |||
params.fetch(:q, nil) | |||
).offset(@start).limit(@items) | |||
|
|||
@total = @results.count(:all) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the (:all)
is necessary, is it? Isn't that just an alias for *
, which is the default for count
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a recent change to the count
method it doesn't play nice with pg_search see this issue and this issue the recommendation seems to be to explicitly call count(:all)
if you have any better suggestions let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raskchanky did you review all of this? This good to go? |
Yep 👍 |
🍴 Upgrades to Rails 4.1.1 and makes a few changes to account for some API changes.