-
Notifications
You must be signed in to change notification settings - Fork 11
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
Upgrade to Rails 4.1 #244
Upgrade to Rails 4.1 #244
Changes from all commits
5949e1a
3e03e37
1862d2a
906de23
18134a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,7 @@ def posts_from_relation(relation, no_tests=true, with_pagination=true) | |
posts = posts.paginate(page: page, per_page: 25) if with_pagination | ||
posts = posts.no_tests if no_tests | ||
|
||
if (with_pagination && posts.total_pages <= 1) || posts.count <= 25 | ||
if (with_pagination && posts.total_pages <= 1) || posts.count(:all) <= 25 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Otherwise it calls |
||
posts = posts.select {|post| post.visible_to?(current_user)} | ||
end | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.action_dispatch.cookies_serializer = :json | ||
Rails.application.config.action_dispatch.cookies_serializer = :hybrid | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my personal edification, whyfor? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this commit message answers why? The details are basically "I'm not sure why this file existed before, I don't think it applied, this should be better? "906de238867e9806c7d894d16ccc23937bd8fcd5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Oops) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, didn't see the commit message, thanks! |
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.
Did we have a specific HAML version for any particular reason?
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.
https://github.com/indirect/haml-rails#older-versions-of-rails