links fix

This commit is contained in:
Wojciech Todryk 2012-05-28 21:17:24 +02:00
parent ccd3636021
commit 0c3e911553

View file

@ -2,7 +2,7 @@ class Link < ActiveRecord::Base
validates_length_of :url, :within => 5..150 validates_length_of :url, :within => 5..150
validates_length_of :info, :maximum => 50 validates_length_of :info, :maximum => 50
belongs_to :user belongs_to :user
default_scope :order => 'name asc' default_scope :order => 'url asc'
def self.getPageForUser(user,page,sort_field,sort_dir) def self.getPageForUser(user,page,sort_field,sort_dir)