collectiveidea/awesome_nested_set — pull request #232 by marutosi (2014-01-22 05:47:56+00:00)
Title: v2.1.6: prevent DEPRECATION WARNING of has_many on Rails 4.0

On Rails 4.0.2:

DEPRECATION WARNING: The following options in your Issue.has_many :children declaration are deprecated: :order. Please use a scope block instead. For example, the following:

has_many :spam_comments, conditions: { spam: true }, class_name: 'Comment'

should be rewritten as the following:

has_many :spam_comments, -> { where spam: true }, class_name: 'Comment'
. (called from acts_as_nested_set at lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:84)