mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 00:36:01 +01:00
Get rid of ActiveSupport::Concern InstanceMethods deprecation warnings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9743 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,7 +36,7 @@ module CollectiveIdea #:nodoc:
|
||||
# Example: <tt>acts_as_nested_set :counter_cache => :children_count</tt>
|
||||
#
|
||||
# See CollectiveIdea::Acts::NestedSet::Model::ClassMethods for a list of class methods and
|
||||
# CollectiveIdea::Acts::NestedSet::Model::InstanceMethods for a list of instance methods added
|
||||
# CollectiveIdea::Acts::NestedSet::Model for a list of instance methods added
|
||||
# to acts_as_nested_set models
|
||||
def acts_as_nested_set(options = {})
|
||||
options = {
|
||||
@@ -222,7 +222,7 @@ module CollectiveIdea #:nodoc:
|
||||
#
|
||||
# category.self_and_descendants.count
|
||||
# category.ancestors.find(:all, :conditions => "name like '%foo%'")
|
||||
module InstanceMethods
|
||||
|
||||
# Value of the parent column
|
||||
def parent_id
|
||||
self[parent_column_name]
|
||||
@@ -561,8 +561,6 @@ reload
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Mixed into both classes and instances to provide easy access to the column names
|
||||
module Columns
|
||||
def left_column_name
|
||||
|
||||
Reference in New Issue
Block a user