Parent

Files

Class/Module Index [+]

Quicksearch

Devise::IndifferentHash

We cannot use Rails Indifferent Hash because it messes up the flash object.

Public Instance Methods

[](key) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 45
def [](key)
  super(convert_key(key))
end
[]=(key, value) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 49
def []=(key, value)
  regular_writer(convert_key(key), value)
end
Also aliased as: regular_writer, store
delete(key) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 82
def delete(key)
  super(convert_key(key))
end
fetch(key, *extras) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 70
def fetch(key, *extras)
  super(convert_key(key), *extras)
end
has_key?(key) click to toggle source
Alias for: key?
include?(key) click to toggle source
Alias for: key?
key?(key) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 62
def key?(key)
  super(convert_key(key))
end
Also aliased as: include?, has_key?, member?
member?(key) click to toggle source
Alias for: key?
merge(hash) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 78
def merge(hash)
  self.dup.update(hash)
end
merge!(other_hash) click to toggle source
Alias for: update
regular_update(other_hash) click to toggle source
Alias for: update
regular_writer(key, value) click to toggle source
Alias for: []=
store(key, value) click to toggle source
Alias for: []=
stringify_keys() click to toggle source
# File lib/devise/rails/warden_compat.rb, line 87
def stringify_keys; dup end
stringify_keys!() click to toggle source
# File lib/devise/rails/warden_compat.rb, line 86
def stringify_keys!; self end
symbolize_keys() click to toggle source
# File lib/devise/rails/warden_compat.rb, line 90
def symbolize_keys; to_hash.symbolize_keys end
to_hash() click to toggle source
# File lib/devise/rails/warden_compat.rb, line 93
def to_hash; Hash.new.update(self) end
to_options!() click to toggle source
# File lib/devise/rails/warden_compat.rb, line 92
def to_options!; self end
update(other_hash) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 55
def update(other_hash)
  other_hash.each_pair { |key, value| regular_writer(convert_key(key), value) }
  self
end
Also aliased as: regular_update, merge!
values_at(*indices) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 74
def values_at(*indices)
  indices.collect {|key| self[convert_key(key)]}
end

Protected Instance Methods

convert_key(key) click to toggle source
# File lib/devise/rails/warden_compat.rb, line 97
def convert_key(key)
  key.kind_of?(Symbol) ? key.to_s : key
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.