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

Commit

Permalink
Rails 3.2 support
Browse files Browse the repository at this point in the history
*removed deprecated write_inheritable_attribute and class_inheritable_reader
  • Loading branch information
damireh committed Feb 3, 2012
1 parent 7901750 commit 871fa1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commentable_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def self.included(base)
module ClassMethods
def acts_as_commentable(*args)
comment_roles = args.to_a.flatten.compact.map(&:to_sym)
write_inheritable_attribute(:comment_types, (comment_roles.blank? ? [:comments] : comment_roles))
class_inheritable_reader(:comment_types)
class_attribute :comment_types
self.comment_types = (comment_roles.blank? ? [:comments] : comment_roles)

options = ((args.blank? or args[0].blank?) ? {} : args[0])

Expand Down

0 comments on commit 871fa1f

Please sign in to comment.