Skip to content

Commit

Permalink
DEPRECATION WARNING: class_inheritable_attribute is deprecated, pleas…
Browse files Browse the repository at this point in the history
…e use class_attribute method instead.
  • Loading branch information
slbug committed Dec 5, 2010
1 parent ebe1fdb commit 6c98d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/awesome_nested_set/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def acts_as_nested_set(options = {})
options[:scope] = "#{options[:scope]}_id".intern
end

write_inheritable_attribute :acts_as_nested_set_options, options
class_inheritable_reader :acts_as_nested_set_options
class_attribute :acts_as_nested_set_options, :instance_writer => false
self.acts_as_nested_set_options = options

unless self.is_a?(ClassMethods)
include Comparable
Expand Down

1 comment on commit 6c98d59

@sivabudh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this ever get pushed into collectiveidea/awesome_nested_set?

Please sign in to comment.