Sha256: 7164bbe2531a61eafcef9c84f3d1096e51578e32050e7c9053d737e348471d51

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"
require "active_support/core_ext/module/attribute_accessors"
require "active_support/core_ext/module/delegation"
require "fixtury/version"
require "fixtury/schema"
require "fixtury/locator"
require "fixtury/store"

module Fixtury

  # Shortcut for opening the top level schema.
  def self.define(&block)
    schema.define(&block)
    schema
  end

  # The default top level schema. Fixtury::Schema instances can be completely self-contained but most
  # usage would be through this shared definition.
  def self.schema
    @top_level_schema ||= ::Fixtury::Schema.new(parent: nil, name: "")
  end

end

require "fixtury/railtie" if defined?(Rails)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fixtury-0.3.3 lib/fixtury.rb
fixtury-0.3.2 lib/fixtury.rb
fixtury-0.3.1 lib/fixtury.rb