mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
Redistat::Result is now a HashWithIndifferentAccess
instead of a regular Hash
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
require 'rubygems'
|
||||
require 'active_support'
|
||||
require 'active_support/hash_with_indifferent_access' if !Hash.respond_to?(:with_indifferent_access) # Active Support 2.x and 3.x
|
||||
require 'redis'
|
||||
require 'date'
|
||||
require 'time'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module Redistat
|
||||
class Result < ::Hash
|
||||
class Result < ::ActiveSupport::HashWithIndifferentAccess
|
||||
|
||||
attr_accessor :from
|
||||
attr_accessor :till
|
||||
|
||||
Reference in New Issue
Block a user