eac_rails_utils 0.11.3 → 0.11.4

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: 54bbe456abde5a3d0732e51ff54287e49520aa889458d080ec653b0a8c0942b9
4
- data.tar.gz: 4ac9e4b61c7776d7447cbc368a95e8f8efd5a048719acd08af830b79dce9bbb8
3
+ metadata.gz: 07d2a7ca43c5129fbcb1bc6e6e1359583dfde2e49fd98ee7e13e643121e19638
4
+ data.tar.gz: 3157833b02da72112a981c2cd526a7d102fff2fb55c6b567fbae4645365bd523
5
5
  SHA512:
6
- metadata.gz: ede9ed5dbc28c84f3b4d681e98fd91648b8c190161bac4716c41598bdff227efb66033e1a157508148ff7b4b64b197824dfdda25e3c7642eb9e2430e382861d0
7
- data.tar.gz: d018208530ad259086c4e76d6c89b6cf930d810bd11dff3f2a583ffe3ad0708eb309924f4f152cc9e98cf409eb477f3208ffc88f0263b9ae467cbff3dc6d2b15
6
+ metadata.gz: e7c6dd756b2569913fafee714f74c77b51d6d2f7e7814a234c9c60aec4b53d5c2a720a5844677a1012e8765a3d5b8e769e946088766a99a75a2cccf3c21884ad
7
+ data.tar.gz: 6ed6ec289d5c4bb3b9c01d732323ad4d0c9901e97c59904f552b1a052ddec63593c3be60c78374c44c4e94251e37e91c7212979369c09560981afd1e73730355
@@ -27,6 +27,8 @@ module ActiveModel
27
27
  module Associations
28
28
  module Hooks
29
29
  def self.init
30
+ return unless ::Rails.version < '5'
31
+
30
32
  ActiveSupport.on_load(:active_record) do
31
33
  ActiveRecord::Associations::AssociationScope.prepend(
32
34
  ::EacRailsUtils::Patches::ActiveModelAssociations::ScopeExtensionPatch
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsUtils
4
- VERSION = '0.11.3'
4
+ VERSION = '0.11.4'
5
5
  end
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
@@ -9,6 +9,6 @@ require 'eac_rails_utils'
9
9
 
10
10
  module Dummy
11
11
  class Application < Rails::Application
12
- config.active_record.raise_in_transactional_callbacks = true
12
+ config.active_record.raise_in_transactional_callbacks = true if ::Rails.version < '5'
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - E.A.C.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-29 00:00:00.000000000 Z
11
+ date: 2020-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel-associations
@@ -202,6 +202,7 @@ files:
202
202
  - lib/eac_rails_utils/patches/active_model_associations.rb
203
203
  - lib/eac_rails_utils/version.rb
204
204
  - test/dummy/Rakefile
205
+ - test/dummy/app/assets/config/manifest.js
205
206
  - test/dummy/app/models/job.rb
206
207
  - test/dummy/app/models/user.rb
207
208
  - test/dummy/config.ru
@@ -243,8 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  - !ruby/object:Gem::Version
244
245
  version: '0'
245
246
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 2.7.7
247
+ rubygems_version: 3.0.8
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Código reutilizável para as aplicações Rails da E.A.C..
@@ -265,6 +265,7 @@ test_files:
265
265
  - test/dummy/db/migrate/20160415125333_create_users.rb
266
266
  - test/dummy/app/models/job.rb
267
267
  - test/dummy/app/models/user.rb
268
+ - test/dummy/app/assets/config/manifest.js
268
269
  - test/test_helper.rb
269
270
  - test/validators/cpf_validator_test.rb
270
271
  - test/helpers/eac_rails_utils/common_form_helper_test.rb