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

Update to Rails 4.2 #868

Merged
merged 8 commits into from Jan 17, 2015
Merged

Update to Rails 4.2 #868

merged 8 commits into from Jan 17, 2015

Conversation

tomhughes
Copy link
Member

This updates the site to use rails 4.2 (currently 4.2.0).

A test site is up at http://rails42.apis.dev.openstreetmap.org/ and things could probably do with a bit of testing before we merge this.

Cleanup our migrations, replacing as much of our custom code
and monkey patching with modern standard rails methods.
Because rails now reads the defaults from the database correctly it
no longer works to set them conditionally in after_initialise as they
have already been set.
This doesn't seem to work with the new nokogiri based matching
in rails 4.2 probably because the attribute is removed by the
parser and used to set the namespace of the element.
@HolgerJeromin
Copy link
Contributor

typo: currently we have rails 4.1.9

@tomhughes
Copy link
Member Author

No I meant that the 4.2 branch is currently based on 4.2.0, not that we are currently running that.

@pnorman
Copy link
Contributor

pnorman commented Jan 12, 2015

Tried some stuff, couldn't produce any errors.

@tomhughes tomhughes mentioned this pull request Jan 12, 2015
@openstreetmap-mirror openstreetmap-mirror merged commit 6e56580 into openstreetmap:master Jan 17, 2015
@tomhughes tomhughes deleted the rails42 branch January 18, 2015 15:11
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

4 participants