Permalink
Browse files

Moving back to ActiveRecord 2.3.5

  • Loading branch information...
konklone committed Mar 25, 2010
1 parent f3a833d commit 6c3ed2c02776b7866b5c5fb7635de65120b4347c
Showing with 3 additions and 3 deletions.
  1. +3 −3 models.rb
View
@@ -15,9 +15,9 @@ class Account < ActiveRecord::Base
validates_presence_of :user_id
validates_inclusion_of :account_type, :in => TYPES
- scope :worth, :conditions => {:account_type => 'worth'}
- scope :assets, :conditions => {:account_type => 'assets'}
- scope :debts, :conditions => {:account_type => 'debts'}
+ named_scope :worth, :conditions => {:account_type => 'worth'}
+ named_scope :assets, :conditions => {:account_type => 'assets'}
+ named_scope :debts, :conditions => {:account_type => 'debts'}
def assets?
account_type == 'credit'

0 comments on commit 6c3ed2c

Please sign in to comment.