Sha256: 158c93b59a1386fd5d0e8eb65ab970f8455280ec08178ddce604f4f52f2a3678
Contents?: true
Size: 507 Bytes
Versions: 38
Compression:
Stored size: 507 Bytes
Contents
# typed: true # frozen_string_literal: true begin require "frozen_record" rescue LoadError return end module Tapioca module Dsl module Compilers module Extensions module FrozenRecord attr_reader :__tapioca_scope_names def scope(name, body) @__tapioca_scope_names ||= [] @__tapioca_scope_names << name super end ::FrozenRecord::Base.singleton_class.prepend(self) end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems