Sha256: e765c35a6e260abff55915225d771bc7dbba62ef69883b77f238e85e148c2d5b

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

module SocialEngine
  module Commentable
    def is_commentable
      has_many :comments, :as=>:commentable, :dependent => :destroy
      include InstanceMethods
    end
    
    module InstanceMethods
      def commentable?
        true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_engine-0.0.1 app/models/social_engine/commentable.rb