Permalink
Browse files

Disambiguate by_star_field by default

  • Loading branch information...
1 parent 7b4b05c commit a1995e5219f2f0eea68536ceb7e4a481575070e4 @radar committed Sep 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/by_star.rb
View
2 lib/by_star.rb
@@ -15,7 +15,7 @@ module ByStar
def by_star_field(field=nil)
@by_star_field ||= field
- @by_star_field || "created_at"
+ @by_star_field || "#{self.table_name}.created_at"
end
include ByDirection

0 comments on commit a1995e5

Please sign in to comment.