app/models/grandstand/post.rb in grandstand-0.2.7 vs app/models/grandstand/post.rb in grandstand-0.3.0
- old
+ new
@@ -1,5 +1,7 @@
class Grandstand::Post < ActiveRecord::Base
+ set_table_name :grandstand_posts
+
before_save :set_url
before_validation :set_posted_at
belongs_to :user
default_scope order('posted_at DESC, created_at DESC, id DESC')