Skip to content

Commit

Permalink
changing Base.named_scope to Base.scope to fix rails3 depreciation wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
Matthias Tarasiewicz committed Mar 23, 2010
1 parent 9e52616 commit 88eb33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/acts/tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def acts_as_tree(options = {})
class_eval <<-EOV
include ActiveRecord::Acts::Tree::InstanceMethods
named_scope :roots,
scope :roots,
:conditions => "#{configuration[:foreign_key]} IS NULL",
:order => #{configuration[:order].nil? ? "nil" : %Q{"#{configuration[:order]}"}}
Expand Down

0 comments on commit 88eb33a

Please sign in to comment.