diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 16:00:22 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 16:20:18 -0300 |
commit | 758e223c45fdd41bdb397e3830553d13686c8dc1 (patch) | |
tree | 9cf66d46db27b03674134d83adec819d2bd277aa /activesupport/lib/active_support/core_ext.rb | |
parent | 065c20890a11a940e78078fc1c6488a655f41420 (diff) | |
download | rails-758e223c45fdd41bdb397e3830553d13686c8dc1.tar.gz rails-758e223c45fdd41bdb397e3830553d13686c8dc1.tar.bz2 rails-758e223c45fdd41bdb397e3830553d13686c8dc1.zip |
Remove Struct#to_h backport
Diffstat (limited to 'activesupport/lib/active_support/core_ext.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext.rb b/activesupport/lib/active_support/core_ext.rb index 199aa91020..52706c3d7a 100644 --- a/activesupport/lib/active_support/core_ext.rb +++ b/activesupport/lib/active_support/core_ext.rb @@ -1,3 +1,4 @@ -Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].each do |path| +DEPRECATED_FILES = ["#{File.dirname(__FILE__)}/core_ext/struct.rb"] +(Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"] - DEPRECATED_FILES).each do |path| require path end |