Sha256: 88b564ebaeb052bf0a2390b70bb01c49a768c2ea4b76fde41106b35c9f57f230

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

module HasComments
  def self.included(base)
    base.extend ClassMethods
  end
  
  module ClassMethods
    def has_comments
      puts "hello"
    end
  end
end

class ActiveRecord::Base
  include HasComments
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_comments-0.1.3 lib/has_comments.rb