Displaying 1 result from an estimated 1 matches for "jackdempsey".
2009 Dec 27
5
Difficulties in understanding Rail-Plugins in depth
...wonder what''s happen all there.
What kind of language-feature is behind this call "acts_as_commentable" ?
In my opinion you need some kind of extend or include to extend the
functionality of a model. And exactly this is which i found in a file
of the plugin.
http://github.com/jackdempsey/acts_as_commentable/blob/master/lib/commentable_methods.rb
I have found this part:
module Juixe
module Acts #:nodoc:
module Commentable #:nodoc:
module ClassMethods
def acts_as_commentable
has_many :comments, :as => :commentable, :dependent => :destroy
...