Fix AS::Duration#duplicable? on 1.8 #1188

merged 1 commit into from May 21, 2011


None yet
2 participants

thedarkone commented May 21, 2011

On 1.8 when using ActiveSupport's implementation of the BasicObject if some Object extensions are loaded after the active_support/basic_object the do sneak their methods into BasicObject as well. In this case BasicObject ends up using Object#duplicable? instead of Fixnum#duplicable?.

This should got both into master and 3-0-stable.

josevalim added a commit that referenced this pull request May 21, 2011

Merge pull request #1188 from thedarkone/duplicable-duration
Fix AS::Duration#duplicable? on 1.8

@josevalim josevalim merged commit f007885 into rails:master May 21, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment