fabrication 2.16.1 → 2.16.2

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: 843ecc050e986f0b97d1d4a57667e20bf012963f
4
- data.tar.gz: f4729f44578e9feeb2c4bb2e3cfb9d23dc2cd1d3
3
+ metadata.gz: 38fb5cd3bc0dca8fecc6df1dfe271b0d6bc0d77a
4
+ data.tar.gz: 430eef3d2830c27b716b7d3d0cc52c14d455974d
5
5
  SHA512:
6
- metadata.gz: a0e4a4c4fd78f30d6ae1c1a0ca62ca7c2ffbeb73c2aaf46ffb7297a63861741284db4cd69550e2fa723ce7aaa2aadd4a7f10e5a04335264fc4b66438468de46f
7
- data.tar.gz: c1fa2e70d3cb7dd35beb7f1a59503c891f9d3f3717881d8a9d91fdc0f1a2cd24ddb66c406103fc1283a82c79f63dd2b4785ea69ec44a704c8111b86285820cfb
6
+ metadata.gz: fb5fc849d4efdfe678ea3e94e4f06647acd96f45058af40b2dc7f4422497e9402490d531d334b7bb822c9ca996557dd4769fa47c6e85ce3370f2c5c13cef7bb8
7
+ data.tar.gz: bc98ee62ec3209351661a668e910225886c822260ed6bc70d59f405fcc548a5697e08559b67c5d625592717bab8cdf22d47584a1ca00ff05ccd697a485ebdbb7
@@ -1,4 +1,4 @@
1
- require 'fabrication/railtie' if defined?(Rails)
1
+ require 'fabrication/railtie' if defined?(Rails::Railtie)
2
2
 
3
3
  autoload :Fabricate, 'fabricate'
4
4
 
@@ -29,7 +29,7 @@ class Fabrication::Generator::Sequel < Fabrication::Generator::Base
29
29
  private
30
30
 
31
31
  def load_instance_hooks
32
- klass = _klass.respond_to?(:cti_base_model) ? _klass.cti_base_model : _klass
32
+ klass = _klass.respond_to?(:cti_base_model) ? _klass.cti_models.first : _klass
33
33
  klass.plugin :instance_hooks unless klass.new.respond_to? :after_save_hook
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.16.1'
2
+ VERSION = '2.16.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabrication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: 2.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Elliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-04 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fabrication is an object generation framework for ActiveRecord, Mongoid,
14
14
  DataMapper, Sequel, or any other Ruby object.