Sha256: 263026d43dd623a510f74bcb440fd4ca8c90f5a098092d34751254c1392a77c8

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

require 'active_record'

require 'activerecord_null_object/version'
require 'activerecord_null_object/null_object'
require 'activerecord_null_object/null_object_support'

ActiveSupport.on_load(:active_record) do
  ActiveRecord::Base.send :include, ActiveRecordNullObject::NullObjectSupport
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord_null_object-0.8.0 lib/activerecord_null_object.rb
activerecord_null_object-0.7.0 lib/activerecord_null_object.rb