diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/mixins/list.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/mixins/list.rb b/activerecord/lib/active_record/mixins/list.rb index 16a60d7b6c..a1d914d73c 100644 --- a/activerecord/lib/active_record/mixins/list.rb +++ b/activerecord/lib/active_record/mixins/list.rb @@ -45,7 +45,11 @@ module ActiveRecord end def scope_condition - "#{configuration[:scope]} = \#{#{configuration[:scope]}}" + if configuration[:scope].is_a?(Symbol) + "#{configuration[:scope]} = \#{#{configuration[:scope]}}" + else + configuration[:scope] + end end before_destroy :remove_from_list |