Skip to content

Commit

Permalink
AR::Relation#scoped has been removed in favor of #scope, which works …
Browse files Browse the repository at this point in the history
…on both AR 4.0 and 4.1.
  • Loading branch information
botandrose-machine committed Apr 23, 2014
1 parent c4349f9 commit 58201d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/awesome_nested_set/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def nested_set_options(class_or_item, mover = nil)
if class_or_item.is_a? Array
items = class_or_item.reject { |e| !e.root? }
else
class_or_item = class_or_item.roots if class_or_item.respond_to?(:scoped)
class_or_item = class_or_item.roots if class_or_item.respond_to?(:scope)
items = Array(class_or_item)
end
result = []
Expand Down

0 comments on commit 58201d3

Please sign in to comment.