diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 12:55:11 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 13:21:54 -0300 |
commit | 0bf51e9805260243ec0bbe5fca8f8b9364fdd970 (patch) | |
tree | 26868888c08692160a58f53b286640e086240545 /activerecord | |
parent | e2e4216d645ce32ad11b2a681b45c85025de3d1d (diff) | |
download | rails-0bf51e9805260243ec0bbe5fca8f8b9364fdd970.tar.gz rails-0bf51e9805260243ec0bbe5fca8f8b9364fdd970.tar.bz2 rails-0bf51e9805260243ec0bbe5fca8f8b9364fdd970.zip |
No need to check if YAML::ENGINE is defined since ruby 1.9 does that
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 980f8fe50f..ee7ff7a2d7 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -319,7 +319,7 @@ module ActiveRecord # Hackery to accomodate Syck. Remove for 4.0. def to_yaml(opts = {}) #:nodoc: - if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? + if !YAML::ENGINE.syck? super else coder = {} |