Sha256: 3dbe650f57e4ab2a1aae5125757520c08d228e2003a35026e1052b622ec5b445

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

require "active_record"
require "active_support/inflector"
require "active_support/dependencies/autoload"

$LOAD_PATH.unshift(File.dirname(__FILE__))

module CommentableOn
  extend ActiveSupport::Autoload
  class Error < StandardError; end

  autoload :Commentable
  autoload :Comment
  autoload :Commenter
  autoload :Extenders

  if defined?(ActiveRecord::Base)
    ActiveRecord::Base.extend CommentableOn::Extenders::Commentable
    ActiveRecord::Base.extend CommentableOn::Extenders::Commenter
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commentable_on-1.1.0 lib/commentable_on.rb
commentable_on-1.0.0 lib/commentable_on.rb
commentable_on-0.1.0 lib/commentable_on.rb