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:
Etienne Massip 2012-05-30 18:33:26 +00:00
parent d915a5e36d
commit fc7b790081
1 changed files with 316 additions and 318 deletions

View File

@ -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