Defect #11389

Warning in awesome_nested_set.rb

Added by Jean-Sébastien Pédron over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Code cleanup/refactoring
Target version:2.1.0
Resolution:Fixed Affected version:2.0.3

Description

We have the following warning:

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically.
Please define instance methods directly in CollectiveIdea::Acts::NestedSet::Model instead.
(called from include at /var/lib/redmine/lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:58)

It doesn't do any harm on our side, but it seems related to issue #11072.

Anyway, to fix it, I followed what I found in the following answer on Stackoverflow and it did work:
http://stackoverflow.com/a/8684885
(eg. removing the "module InstanceMethods" declaration and the corresponding "end").

Usual informations:
  • Redmine 2.0.3 from SVN r9959 (branches/2.0-stable)
  • Ruby 1.8.7
  • Rails 3.2.6
  • Debian Squeeze

Related issues

Duplicated by Redmine - Defect #11466: Repository.fetch_changesets warnings Closed

History

#1 Updated by Etienne Massip over 5 years ago

  • Category set to Code cleanup/refactoring
  • Status changed from New to Resolved
  • Target version set to 2.1.0
  • Affected version (unused) set to 2.0.3
  • Resolution set to Fixed
  • Affected version set to 2.0.3

It has already been fixed with r9743.

#2 Updated by Jean-Philippe Lang over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF