lib/rails/auth/credentials.rb in rails-auth-2.0.1 vs lib/rails/auth/credentials.rb in rails-auth-2.0.2
- old
+ new
@@ -6,11 +6,12 @@
# Modular resource-based authentication and authorization for Rails/Rack
module Auth
# Stores a set of credentials
class Credentials
extend Forwardable
+ include Enumerable
- def_delegators :@credentials, :[], :fetch, :empty?, :key?, :to_hash
+ def_delegators :@credentials, :[], :fetch, :empty?, :key?, :each, :to_hash
def self.from_rack_env(env)
new(env.fetch(Rails::Auth::Env::CREDENTIALS_ENV_KEY, {}))
end