diff --git a/lib/commentable_methods.rb b/lib/commentable_methods.rb index b068bb5..50d7be7 100644 --- a/lib/commentable_methods.rb +++ b/lib/commentable_methods.rb @@ -10,8 +10,8 @@ def self.included(base) end module ClassMethods - def acts_as_commentable - has_many :comments, :as => :commentable, :dependent => :destroy + def acts_as_commentable(options={}) + has_many :comments, {:as => :commentable, :dependent => :destroy}.merge(options) include Juixe::Acts::Commentable::InstanceMethods extend Juixe::Acts::Commentable::SingletonMethods end