aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/ordered_hash.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 12:55:11 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 13:21:54 -0300
commit0bf51e9805260243ec0bbe5fca8f8b9364fdd970 (patch)
tree26868888c08692160a58f53b286640e086240545 /activesupport/lib/active_support/ordered_hash.rb
parente2e4216d645ce32ad11b2a681b45c85025de3d1d (diff)
downloadrails-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 'activesupport/lib/active_support/ordered_hash.rb')
-rw-r--r--activesupport/lib/active_support/ordered_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb
index d4f309fbd7..fdf4a2bda3 100644
--- a/activesupport/lib/active_support/ordered_hash.rb
+++ b/activesupport/lib/active_support/ordered_hash.rb
@@ -30,7 +30,7 @@ module ActiveSupport
end
def to_yaml(opts = {})
- if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck?
+ if !YAML::ENGINE.syck?
return super
end