|
Revision 7719, 0.5 kB
(checked in by bitsweat, 1 year ago)
|
Ruby 1.9 compat, consistent load paths
|
| Line | |
|---|
| 1 |
%w(keys indifferent_access reverse_merge conversions diff slice except).each do |ext| |
|---|
| 2 |
require "active_support/core_ext/hash/#{ext}" |
|---|
| 3 |
end |
|---|
| 4 |
|
|---|
| 5 |
class Hash |
|---|
| 6 |
include ActiveSupport::CoreExtensions::Hash::Keys |
|---|
| 7 |
include ActiveSupport::CoreExtensions::Hash::IndifferentAccess |
|---|
| 8 |
include ActiveSupport::CoreExtensions::Hash::ReverseMerge |
|---|
| 9 |
include ActiveSupport::CoreExtensions::Hash::Conversions |
|---|
| 10 |
include ActiveSupport::CoreExtensions::Hash::Diff |
|---|
| 11 |
include ActiveSupport::CoreExtensions::Hash::Slice |
|---|
| 12 |
include ActiveSupport::CoreExtensions::Hash::Except |
|---|
| 13 |
end |
|---|