From 96009bae501c5237414ff38dceac46c8726ced2b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 19 Jul 2010 10:57:16 +0300 Subject: [PATCH] created a to_rs alias method for to_redistat on Time and Date objects --- lib/redistat/date.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/redistat/date.rb b/lib/redistat/date.rb index ebfa6f0..735d790 100644 --- a/lib/redistat/date.rb +++ b/lib/redistat/date.rb @@ -67,10 +67,12 @@ class Date def to_redistat Redistat::Date.new(self) end + alias :to_rs :to_redistat end class Time def to_redistat Redistat::Date.new(self) end + alias :to_rs :to_redistat end \ No newline at end of file