has_blob_bit_field 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84cb16ec03d0b3289a08923dbe26b84f80539290
4
- data.tar.gz: bb148f70fc3bf032ef79f3b531abf22c32092ab0
3
+ metadata.gz: 9cd7cd6d23465ab0061d468e7e07606c203bcdd0
4
+ data.tar.gz: 272d7f83e41445d206f776f806a9daaefabba211
5
5
  SHA512:
6
- metadata.gz: 7eb4a11088a4a8f9332a169c3c2fafabdd83b7911fbd903edafb1248daaa5b984f93eafa562e2a47ca3b3700bc22d47f88cc6e12f9c72dfb2f5ce50691da9b14
7
- data.tar.gz: 1906c4b3239b81ead3899813c2eb707d5347342a2c8ca407399ce0635517230f8e568715ecf1d325ddec1fa1d0d9681f48883f5551d267c6db1f803caedce93e
6
+ metadata.gz: 911bc94fe73ce80a19f44e93a02d6593f4e00116b1cc8a9a433b818fe65adcfdc75e2ac638cd867ac9b96277a4d93e4bf3e12ff6a22ac47907ffecb557a5475c
7
+ data.tar.gz: 3f77135ec8e5a3a849fbe7a950561d2583f8f00e100f4f7b2a731065e0eef7008dd2d5057ee6107b3e1a0dec14be5b4ca957e518eb27a79b38b4bd6a94c29a17
@@ -3,6 +3,5 @@ require_relative "has_blob_bit_field/version"
3
3
  require_relative "has_blob_bit_field/accessor"
4
4
  require_relative "has_blob_bit_field/extension"
5
5
 
6
- module ActiveModel::Dirty
7
- include HasBlobBitField::Extension
8
- end
6
+ ActiveModel::Dirty.send :include, HasBlobBitField::Extension
7
+ ActiveRecord::Base.send :include, HasBlobBitField::Extension if defined? ActiveRecord
@@ -1,8 +1,8 @@
1
- require 'active_support'
2
-
3
1
  module HasBlobBitField
4
2
  module Extension
5
- extend ActiveSupport::Concern
3
+ def self.included(base)
4
+ base.extend ClassMethods
5
+ end
6
6
 
7
7
  module ClassMethods
8
8
  def has_blob_bit_field field, column: :"#{field}_blob"
@@ -1,3 +1,3 @@
1
1
  module HasBlobBitField
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_blob_bit_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Lafortune
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel