diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2014-01-01 15:24:54 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2014-01-01 15:29:24 +0100 |
commit | afc98eadb892b735a9e40fbd2a9166f15822c569 (patch) | |
tree | 95b471fd5b29befe94edd7caff2d6737200fa9a7 /activerecord/test | |
parent | 97ddfb48dbab8d9410e473f3f6e7e2d189b97b4f (diff) | |
download | rails-afc98eadb892b735a9e40fbd2a9166f15822c569.tar.gz rails-afc98eadb892b735a9e40fbd2a9166f15822c569.tar.bz2 rails-afc98eadb892b735a9e40fbd2a9166f15822c569.zip |
Avoid raising a NameError on FreeBSD using Date
The Date object has a xmlschema method starting with Ruby 1.9 so we were
assuming that we could safely remove this method and redefine it later
but the call to remove_method throws a NameError on FreeBSD so we should
rely on remove_possible_method instead.
This call is actually needed to avoid warnings when running the test
suite.
Fixes #11723
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions