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

Version Path
tapioca-0.11.17 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.16 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.15 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.14 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.13 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.12 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.11 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.10 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.9 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.8 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.7 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.6 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.5 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.4 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.3 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.2 lib/tapioca/dsl/extensions/frozen_record.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/tapioca-0.11.1/lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.1 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.11.0 lib/tapioca/dsl/extensions/frozen_record.rb
tapioca-0.10.5 lib/tapioca/dsl/extensions/frozen_record.rb