lib/activemodel/associations.rb in eac_rails_utils-0.23.1 vs lib/activemodel/associations.rb in eac_rails_utils-0.23.2
- old
+ new
@@ -1,15 +1,13 @@
-require "active_model"
-require "active_record"
-require "active_support"
-require "eac_rails_utils/models/tableless_associations"
-require "eac_rails_utils/models/tableless_associations/hooks"
+require 'active_model' # rubocop:disable Style/FrozenStringLiteralComment
+require 'active_record'
+require 'active_support'
+require 'eac_rails_utils/models/tableless_associations'
+require 'eac_rails_utils/models/tableless_associations/hooks'
# Load Railtie
begin
- require "rails"
+ require 'rails'
rescue LoadError # rubocop:disable Lint/SuppressedException
end
-if defined?(Rails)
- require "eac_rails_utils/models/tableless_associations/railtie"
-end
+require 'eac_rails_utils/models/tableless_associations/railtie' if defined?(Rails)