Module: TranslationDiff::ActiveRecord::Support

Included in:
RateLimiters::ActiveRecord, Stores::ActiveRecord
Defined in:
lib/translation_diff/active_record/support.rb

Overview

The lazy require, the version floor and the anonymous model class, shared by the cache store and the limiter.

Constant Summary collapse

MINIMUM_ACTIVE_RECORD =
"7.1".freeze

Instance Method Summary collapse

Instance Method Details

#model ⇒ Object



5
6
7
# File 'lib/translation_diff/active_record/support.rb', line 5

def model
  @model ||= build_model
end