Sha256: 745eb339bf97a5bb5f559ddd808246583dd3b3634c11e1cf805f37fbf5be5bea

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require "active_record"
require 'acts-as-messageable/acts-as-messageable'

module ActsAsMessageable
  autoload :Message, "acts-as-messageable/message"
  autoload :Relation, "acts-as-messageable/relation"
end

if defined?(ActiveRecord::Base)
  ActiveRecord::Base.send :include, ActsAsMessageable::Model
end

if defined?(ActiveRecord::Relation)
  ActiveRecord::Relation.send :include, ActsAsMessageable::Relation
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts-as-messageable-0.3.1 lib/acts-as-messageable.rb