factory_burgers 1.1.1 → 1.1.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
  SHA256:
3
- metadata.gz: b5c3936bec9745b84c192a908a995e3c3c8bb98fbcda27daebcf7cd41a0d0cd8
4
- data.tar.gz: 576aa1c24552479d5677780c2ac7526b1924f56e4aa103214fb5e5c8f72043fa
3
+ metadata.gz: 237688f22ca51d7ead933c80820903a3066a762090aeb9594485547576a566bf
4
+ data.tar.gz: 4f6d30d15f061c99071638fb749f123eb7d6c19e9954971efb9b851a5c2f5484
5
5
  SHA512:
6
- metadata.gz: ddf8512b84b2f980821d7fa5de497f4ef4c7278d7547cbe9ba21701ea6ab34dc6c04db43628aedae059f22d13ad06b6e5977bdf3a2865aaf325c565218972c8c
7
- data.tar.gz: 1acf7f0fc12a78e629e186472f07206e21218e51af5e580035c2e5c623bd81037a4eb5cf4ea83372e495041360830acdba9b0d75162d2d2062b933f42234009f
6
+ metadata.gz: c8fa700be432eafc10c64f7aa9f566edff0c9e214906330a5a7c9e235a18194ebb5f300941758377ad1a7c930c02896f39f89794aa4e01cbad56a105ed6c8ab4
7
+ data.tar.gz: 9e4fa7fc2d540b74b7dfc4b151e9e28b8490b2329981e94b9309cde49f7312589202d6876867cdf9923e190e9e397ae84841210e2f382472a1cfad9b05c55cfd
@@ -34,7 +34,12 @@ module FactoryBurgers
34
34
  end
35
35
 
36
36
  def class_name
37
- build_class.base_class.name
37
+ klass = build_class
38
+ if klass.is_a? ActiveRecord::Inheritance::ClassMethods
39
+ klass.base_class.name
40
+ else
41
+ klass.name
42
+ end
38
43
  end
39
44
 
40
45
  def traits
@@ -1,3 +1,3 @@
1
1
  module FactoryBurgers
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_burgers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Schwartz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot