Skip to content

Fix for #122, #121 and #175 on Rails 4 branch#247

Merged
radar merged 4 commits into
rubysherpas:rails4from
codeodor:rails4
Jun 22, 2015
Merged

Fix for #122, #121 and #175 on Rails 4 branch#247
radar merged 4 commits into
rubysherpas:rails4from
codeodor:rails4

Conversation

@codeodor
Copy link
Copy Markdown
Contributor

I wasn't sure whether #121 got closed because this fix wasn't desired for the Rails 4 branch, or just because it was so similar to #122 that it looked like a duplicate, so while I was fixing the issue brought up by @joshuapinter I thought I'd add the test for the Rails 4 branch as well.

@codeodor codeodor changed the title Fix for #121 and #175 on Rails 4 branch Fix for #122, #121 and #175 on Rails 4 branch Jun 21, 2015
@codeodor
Copy link
Copy Markdown
Contributor Author

For what it's worth, this test that's failing on travis fails before this change. If I git checkout HEAD~3 from where it's at now, and run against jruby, it results in the same failure.

Ruby 1.9's version of `Object.const_get` does not support namespaced constants, so this commit replaces it with `ActiveSupport`'s `#constantize` method.

The tests were failing running JRuby on 1.9 mode. CRuby was not failing because it is not tested against 1.9.
@codeodor
Copy link
Copy Markdown
Contributor Author

But I fixed it anyway. That last commit should do it.

@radar
Copy link
Copy Markdown
Collaborator

radar commented Jun 22, 2015

Thanks @codeodor!

radar added a commit that referenced this pull request Jun 22, 2015
Fix for #122, #121 and #175 on Rails 4 branch
@radar radar merged commit 857ed34 into rubysherpas:rails4 Jun 22, 2015
@codeodor
Copy link
Copy Markdown
Contributor Author

My pleasure! 👍

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.

3 participants