Sha256: e1dcd94ea54b6f7c19a2f548d28326bf98f798b10c65a73d26f60a982051dad4

Contents?: true

Size: 435 Bytes

Versions: 12

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacRailsUtils
  module Models
    class Tableless
      # For Rails >= '6.1'.
      module StrictLoading
        common_concern

        class_methods do
          def strict_loading?
            false
          end
        end

        # @return [Boolean]
        def strict_loading?
          self.class.strict_loading?
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eac_rails_utils-0.25.0 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.24.0 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.23.4 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.23.3 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.23.2 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.23.1 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.23.0 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.22.3 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.22.2 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.22.1 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.22.0 lib/eac_rails_utils/models/tableless/strict_loading.rb
eac_rails_utils-0.21.0 lib/eac_rails_utils/models/tableless/strict_loading.rb