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 13:30:57 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 13:30:57 -0300
commit761b049b2e51a035eaf9c18f4d0200409848a28e (patch)
treebdfed99b3d0b46ca7e2b079a46d46fa241549eab /activesupport/lib/active_support/ordered_hash.rb
parent0bf51e9805260243ec0bbe5fca8f8b9364fdd970 (diff)
downloadrails-761b049b2e51a035eaf9c18f4d0200409848a28e.tar.gz
rails-761b049b2e51a035eaf9c18f4d0200409848a28e.tar.bz2
rails-761b049b2e51a035eaf9c18f4d0200409848a28e.zip
No need to use rescue block to require psych
Diffstat (limited to 'activesupport/lib/active_support/ordered_hash.rb')
-rw-r--r--activesupport/lib/active_support/ordered_hash.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb
index fdf4a2bda3..7fd4168363 100644
--- a/activesupport/lib/active_support/ordered_hash.rb
+++ b/activesupport/lib/active_support/ordered_hash.rb
@@ -1,8 +1,4 @@
-begin
- require 'psych'
-rescue LoadError
-end
-
+require 'psych'
require 'yaml'
YAML.add_builtin_type("omap") do |type, val|