Module: Commentable

Defined in:
lib/commentable.rb,
lib/commentable/version.rb,
lib/commentable/class_methods.rb,
lib/commentable/instance_methods.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Version

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/commentable.rb', line 10

def self.extended(base)
  base.class_eval do
    include InstanceMethods
    extend ClassMethods

    class << self
      attr_accessor :commentable_options
    end
  end
end