diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-06 01:03:53 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-06 01:04:33 -0300 |
commit | b33bd077fab8e249ba3ddfb7e656c34243c05a1d (patch) | |
tree | cc00b02e74d354ffbb47c5fd734d9911065c66b2 /activesupport/lib/active_support/deprecation/behaviors.rb | |
parent | 2958a1e14e1636ae84d3580f4c7a5a7baeab2b8b (diff) | |
download | rails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.tar.gz rails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.tar.bz2 rails-b33bd077fab8e249ba3ddfb7e656c34243c05a1d.zip |
Remove Array.wrap calls in ActiveSupport
Diffstat (limited to 'activesupport/lib/active_support/deprecation/behaviors.rb')
-rw-r--r-- | activesupport/lib/active_support/deprecation/behaviors.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/deprecation/behaviors.rb b/activesupport/lib/active_support/deprecation/behaviors.rb index 80dcaf5613..94f8d7133e 100644 --- a/activesupport/lib/active_support/deprecation/behaviors.rb +++ b/activesupport/lib/active_support/deprecation/behaviors.rb @@ -1,5 +1,4 @@ require "active_support/notifications" -require "active_support/core_ext/array/wrap" module ActiveSupport module Deprecation @@ -19,7 +18,7 @@ module ActiveSupport # ActiveSupport::Deprecation.behavior = :stderr # ActiveSupport::Deprecation.behavior = [:stderr, :log] def behavior=(behavior) - @behavior = Array.wrap(behavior).map { |b| DEFAULT_BEHAVIORS[b] || b } + @behavior = Array(behavior).map { |b| DEFAULT_BEHAVIORS[b] || b } end end |