app/models/user.rb in trusty-cms-1.2.29 vs app/models/user.rb in trusty-cms-2.0.0.pre.beta
- old
+ new
@@ -3,10 +3,10 @@
class User < ActiveRecord::Base
has_many :pages, :foreign_key => :created_by_id
attr_protected 'why_is_this_needed'
# Default Order
- default_scope :order => 'name'
+ default_scope {order("name")}
# Associations
belongs_to :created_by, :class_name => 'User'
belongs_to :updated_by, :class_name => 'User'