Skip to content

Commit

Permalink
allow options to be passed to acts_as_commentable so you can pass in …
Browse files Browse the repository at this point in the history
…values for :include, etc
  • Loading branch information
jackdempsey committed Mar 15, 2010
1 parent f8dd759 commit 94e6b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commentable_methods.rb
Expand Up @@ -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
Expand Down

0 comments on commit 94e6b64

Please sign in to comment.