Permalink
Browse files

No need to use table name in by_star_field, as ActiveRecord will put …

…this in automatically if it's needed
  • Loading branch information...
radar committed Feb 20, 2012
1 parent 2ec7548 commit 9e760958e0918156b028926a646e1a175729162a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/by_star.rb
View
@@ -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

0 comments on commit 9e76095

Please sign in to comment.