Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
Rails 3.1 deprecation warning about `class_inheritable_attribute' fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
saks committed May 24, 2011
1 parent 6d3d85b commit 5080b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mongoid_acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def acts_as_tree(options = {})
:class => self
}.merge(options)

write_inheritable_attribute :acts_as_tree_options, options
class_inheritable_reader :acts_as_tree_options
class_attribute :acts_as_tree_options
self.acts_as_tree_options = options

include InstanceMethods
include Fields
Expand Down

0 comments on commit 5080b2e

Please sign in to comment.