effective_products 0.3.1 → 0.3.3

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: c6b962a8361ef38e6fd53023d4f6cc26a048d14dad3c6764c65c4592aeeb4feb
4
- data.tar.gz: bed89486cacc7cc0a6fe02e2e4bd0559134e67198ca688c594375b270ef4f8ad
3
+ metadata.gz: 608edbc080f05b93e5f96bf6ad8923aef1c935662e6fb7548d3bd246187968bc
4
+ data.tar.gz: c28497ba83e4b1c441bebd385a4c842a31b40b22fbb1a3631a350957f57ae1eb
5
5
  SHA512:
6
- metadata.gz: 270befc380dfe3fdc3f0b6c93aca1225cd0969322a81ae8f23b0e855335c328f7cff0fac00abdcf5706d7455066366d932fe7409e8a34388c629c147783fe261
7
- data.tar.gz: b39a6283d0e81cf2e2204a8aeac6f14f8d52f75683a36cc65d1b1e7cf4ca7f91bc8aed3a64cc35c5130d63ce07a2aade14819e5dfe3f2bd73bc0cd0ab82616d5
6
+ metadata.gz: 327f222af6cf10256ac77a4919b1ce1646e1e3b8213ab8329c1e49e35a85c381a464c6d3503b991575dec6519fd61891dde52a879c4ed6322830295c327c0cd7
7
+ data.tar.gz: f3fd02fb3527434fb3a78336fc87e2ebd745d4a44a50e11f5b25be901ece93d357fe18619f4711d7441dcab88b4ca8c4f9b84573494e04b7813bc2486f1e85e7
@@ -84,7 +84,7 @@ module Effective
84
84
  end
85
85
 
86
86
  def to_s
87
- [model_name.human, *name.presence].join(' ')
87
+ [model_name.human, *name.presence, ("- #{category}" if category.present?)].join(' ')
88
88
  end
89
89
 
90
90
  def mark_as_submitted!
@@ -9,7 +9,7 @@ module EffectiveProducts
9
9
 
10
10
  # Include acts_as_addressable concern and allow any ActiveRecord object to call it
11
11
  initializer 'effective_products.active_record' do |app|
12
- ActiveSupport.on_load :active_record do
12
+ app.config.to_prepare do
13
13
  ActiveRecord::Base.extend(EffectiveProductsRingWizard::Base)
14
14
  ActiveRecord::Base.extend(EffectiveProductsStampWizard::Base)
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails