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:
parent
d915a5e36d
commit
fc7b790081
@ -36,7 +36,7 @@ module CollectiveIdea #:nodoc:
|
|||||||
# Example: <tt>acts_as_nested_set :counter_cache => :children_count</tt>
|
# Example: <tt>acts_as_nested_set :counter_cache => :children_count</tt>
|
||||||
#
|
#
|
||||||
# See CollectiveIdea::Acts::NestedSet::Model::ClassMethods for a list of class methods and
|
# 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
|
# to acts_as_nested_set models
|
||||||
def acts_as_nested_set(options = {})
|
def acts_as_nested_set(options = {})
|
||||||
options = {
|
options = {
|
||||||
@ -222,7 +222,7 @@ module CollectiveIdea #:nodoc:
|
|||||||
#
|
#
|
||||||
# category.self_and_descendants.count
|
# category.self_and_descendants.count
|
||||||
# category.ancestors.find(:all, :conditions => "name like '%foo%'")
|
# category.ancestors.find(:all, :conditions => "name like '%foo%'")
|
||||||
module InstanceMethods
|
|
||||||
# Value of the parent column
|
# Value of the parent column
|
||||||
def parent_id
|
def parent_id
|
||||||
self[parent_column_name]
|
self[parent_column_name]
|
||||||
@ -561,8 +561,6 @@ reload
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
# Mixed into both classes and instances to provide easy access to the column names
|
# Mixed into both classes and instances to provide easy access to the column names
|
||||||
module Columns
|
module Columns
|
||||||
def left_column_name
|
def left_column_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user