From c5f52455cc0e015b4406099682d087c4a48ef8b7 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 24 Nov 2010 00:36:25 +0000 Subject: [PATCH] replaced Redistat::Model#find alias to #fetch with #lookup instead to avoid conflicts with ActiveRecord --- lib/redistat/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redistat/model.rb b/lib/redistat/model.rb index 1bd1e60..05e1f19 100644 --- a/lib/redistat/model.rb +++ b/lib/redistat/model.rb @@ -18,7 +18,7 @@ module Redistat :till => till }.merge(options.merge(opts))) end - alias :find :fetch + alias :lookup :fetch def hashed_label(boolean = nil) if !boolean.nil?