Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
move symbolize_keys out from the private block
Browse files Browse the repository at this point in the history
  • Loading branch information
haileys committed Sep 19, 2014
1 parent c309a8f commit e972117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/tainted_hash.rb
Expand Up @@ -229,6 +229,12 @@ def inspect
%(#<#{self.class}:#{object_id} @hash=#{@original_hash.inspect} @exposed=#{keys.inspect}>)
end

def symbolize_keys
to_hash.symbolize_keys
end

undef symbolize_keys!

private
def get_original_hash_value(key_s)
set_original_hash_value(key_s, @original_hash[key_s])
Expand Down Expand Up @@ -260,12 +266,6 @@ def untaint_original_hash(original_hash)
hash
end

def symbolize_keys
to_hash.symbolize_keys
end

undef symbolize_keys!

module RailsMethods
def self.included(base)
base.send :alias_method, :stringify_keys!, :stringify_keys
Expand Down

0 comments on commit e972117

Please sign in to comment.