12 lines
196 B
Ruby
12 lines
196 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ReloadHelpers
|
|
def reload_models(*models)
|
|
models.compact.map(&:reload)
|
|
end
|
|
|
|
def subject_and_reload(...)
|
|
subject
|
|
reload_models(...)
|
|
end
|
|
end
|