From 9e760958e0918156b028926a646e1a175729162a Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Sun, 19 Feb 2012 21:15:27 -0500 Subject: [PATCH] No need to use table name in by_star_field, as ActiveRecord will put this in automatically if it's needed --- lib/by_star.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/by_star.rb b/lib/by_star.rb index e9997bd..3aff309 100644 --- a/lib/by_star.rb +++ b/lib/by_star.rb @@ -14,7 +14,7 @@ module ByStar def by_star_field(field=nil) @by_star_field ||= field - @by_star_field || "#{self.table_name}.created_at" + @by_star_field || "created_at" end include ByDirection