rest_rails 1.1.10 → 1.1.11

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: 15427d21d0ab69d7e0c821473a2475a4ca8259c1a423e88c92d770936264ed44
4
- data.tar.gz: 1eccff913bb3e4d706a96160799d30f9b292fb43f63df784e44a78c739161a2f
3
+ metadata.gz: 885bcfd5d0e12d383ca8bad69bbbe60ba785f1aba018fef4fe588ad6b43ee811
4
+ data.tar.gz: 0a8e41ebe5a426a1e24edbf013b48e271c87abe98bb1990b4987841fd0b90400
5
5
  SHA512:
6
- metadata.gz: 414990b34dfbd2ae57760be6381926de28a4e59bc4ed30abd9e9e56a83e0168c28f76884cfa9f8acdabc55cd56b6e1aab9a535cf5239f3fa5254fda6ab54c429
7
- data.tar.gz: 3bc09bedd290c23bcd917aada308a405e4c7e4f772faf863d6fbe506c759dd4cd870cce70521a3e5df047aea625cbd638310c51caff598d7ed664a20d736e70c
6
+ metadata.gz: 77b71f1bef2d7a574ca91b26b2925a16806bf6e1ef39da76f648bdda2061d9f067d111d211d6c2e70353fdf3c7e12bc39119749a7535742ca176b44068b43a6d
7
+ data.tar.gz: 68c29131e3f6d95cf393929366e0a6850e24c7e60cbd695d47f7529d2b9d7d7e1f6b4c143333bcf9b3e07a592e175c14755cc6a73517a55339cbcab0992b961a
@@ -87,6 +87,7 @@ module RestRails
87
87
  # ==========================================================================
88
88
 
89
89
  def model_for(table_name)
90
+ Zeitwerk::Loader.eager_load_all
90
91
  tables = ActiveRecord::Base.descendants.reject(&:abstract_class).index_by(&:table_name)
91
92
 
92
93
  raise RestRails::Error.new "Table '#{table_name}' does not exist in your database!" unless tables.keys.include?(table_name)
@@ -1,3 +1,3 @@
1
1
  module RestRails
2
- VERSION = '1.1.10'
2
+ VERSION = '1.1.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rivas