diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-06-13 23:39:10 +0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-22 17:26:00 -0700 |
commit | 1afae84ab2656cd58a861ab4a4b1745d80088d0f (patch) | |
tree | 29544057e3738abdc680d795aa8fe49ebdf1176b /activerecord/test/models | |
parent | 43cbcb10ae85adc4403e950e69ee14123a20d8ae (diff) | |
download | rails-1afae84ab2656cd58a861ab4a4b1745d80088d0f.tar.gz rails-1afae84ab2656cd58a861ab4a4b1745d80088d0f.tar.bz2 rails-1afae84ab2656cd58a861ab4a4b1745d80088d0f.zip |
Fixed that scopes defined with a string name could not be composed
Diffstat (limited to 'activerecord/test/models')
-rwxr-xr-x | activerecord/test/models/topic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index f63e862cfd..423b6fe52b 100755 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -4,6 +4,7 @@ class Topic < ActiveRecord::Base { :conditions => ['written_on < ?', time] } } named_scope :approved, :conditions => {:approved => true} + named_scope 'approved_as_string', :conditions => {:approved => true} named_scope :replied, :conditions => ['replies_count > 0'] named_scope :anonymous_extension do def one |