Permalink
Browse files

Added assumption that a Symbol-based scope should end in _id unless i…

…t does so already and that you can pass vanilla string-based scopes as a parameter

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 2dbff3f commit 4d6bfc7a3615c68544ce10373e699eec1dfea669 @dhh dhh committed Dec 16, 2004
Showing with 1 addition and 2 deletions.
  1. +1 −1 activerecord/test/fixtures/mixin.rb
  2. +0 −1 activerecord/test/mixin_test.rb
@@ -4,7 +4,7 @@ class Mixin < ActiveRecord::Base
end
class ListMixin < ActiveRecord::Base
- acts_as_list :column => "pos", :scope => :parent_id
+ acts_as_list :column => "pos", :scope => :parent
def self.table_name
"mixins"
@@ -1,7 +1,6 @@
require 'abstract_unit'
require 'active_record/mixins/tree'
require 'active_record/mixins/list'
-require 'active_record/mixins/touch'
require 'fixtures/mixin'

0 comments on commit 4d6bfc7

Please sign in to comment.