mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Scope no longer used
This commit is contained in:
parent
734ab0da54
commit
c9a0dd10b1
1 changed files with 0 additions and 2 deletions
|
@ -32,8 +32,6 @@ class Topic < ActiveRecord::Base
|
|||
|
||||
scope :basic, :include => [:latest, { forum: :forumer }, :user]
|
||||
scope :ordered, :order => "state DESC, posts.id DESC"
|
||||
scope :latest_page,
|
||||
lambda { |page| {:limit => "#{(page-1)*LATEST_PER_PAGE}, #{(page-1)*LATEST_PER_PAGE+LATEST_PER_PAGE}"} }
|
||||
|
||||
validates_presence_of :user_id, :forum_id
|
||||
validates_length_of :title, :in => 1..50
|
||||
|
|
Loading…
Reference in a new issue