rails_model_load_hook 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8473d544c2401e1f0d0b5dadf0783ef6264db6ae
4
- data.tar.gz: f444b8e6ce91b11a0a2121b22d7b8a1620840f4d
2
+ SHA256:
3
+ metadata.gz: 59809d182fd8ed44d58b1ab97624e8e3bce420e7c1a2114521ca9ecd78a24986
4
+ data.tar.gz: 8f1210c28099ce945c90ad79b754afc54e33ca7753586bae0ceb4847aef85d2c
5
5
  SHA512:
6
- metadata.gz: 83db042067305aed31336d97b76facb0410eb6a29bfa1747da8dea34696b9bace75d5316e163a65659092deac6b9433a8de4783c5440264e005cd5e44e4e4d5c
7
- data.tar.gz: e4d3333bc4875e4f18ef0ec12a4fe2b4008936f52cf0ad1e5f27f499bf9b8cee89954ab9fc5c81387a47b93b33f94d56ed7a2476c28ef5ba889ac339bd1f810d
6
+ metadata.gz: b6c6949e893a8e3453cec3552690e3e0d3f53bb0757941729b2ed9c80a8bdf451aa62181a28cec7ed3585f7960a842044faeb609f85d410a13632b32fef6fe01
7
+ data.tar.gz: e2838541b2b15bbf7d862568f1bdbeb95c0524fd67af21b5906c19411d642d4145bc6c443444530d01b06f559af22d388bef5b95b9fe376b2ef41e482abb8803
@@ -4,13 +4,12 @@ module RailsModelLoadHook::ActiveRecord
4
4
  module OnLoad
5
5
  extend ActiveSupport::Concern
6
6
 
7
- included do
8
- singleton_class.alias_method_chain :inherited, :on_load
9
- end
10
-
11
7
  module ClassMethods
12
- def inherited_with_on_load child
13
- inherited_without_on_load child
8
+ private
9
+
10
+ def inherited child
11
+ super
12
+
14
13
  ActiveSupport.run_load_hooks :model_class, child
15
14
  end
16
15
  end
@@ -1,5 +1,5 @@
1
1
  require 'rails_model_load_hook/active_record/on_load'
2
2
 
3
3
  ActiveSupport.on_load :active_record do
4
- include RailsModelLoadHook::ActiveRecord::OnLoad
4
+ prepend RailsModelLoadHook::ActiveRecord::OnLoad
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module RailsModelLoadHook
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_model_load_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Senko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,11 +54,11 @@ files:
54
54
  - lib/rails_model_load_hook/engine.rb
55
55
  - lib/rails_model_load_hook/version.rb
56
56
  - lib/tasks/rails_model_load_hook_tasks.rake
57
- homepage: https://github.com/softpro/rails_model_load_hook
57
+ homepage: https://github.com/Alexander-Senko/rails_model_load_hook
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
64
  - lib
@@ -66,16 +66,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: '2.0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 2.2.2
78
- signing_key:
76
+ rubygems_version: 3.4.0.dev
77
+ signing_key:
79
78
  specification_version: 4
80
79
  summary: Load hook for Rails model classes.
81
80
  test_files: []