Sha256: b6e78346b7bb520319246b151df16b036a4cb34e4e4253ef0d4a36c9923b2c0e
Contents?: true
Size: 294 Bytes
Versions: 7
Compression:
Stored size: 294 Bytes
Contents
# frozen_string_literal: true module Macros class Model class Copy < Macros::Base def initialize(ctx_key = nil) @ctx_key = ctx_key end def call(ctx, **) return false unless ctx[@ctx_key] ctx[:model] = ctx[@ctx_key] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems