Sha256: bfd70bad4ea3ec90471364d82ace65bdd7326adf0c3c4aef14539e5001ff9f30

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require "store_model/model"
require "store_model/configuration"
require "store_model/railtie"
require "active_model/validations/store_model_validator"

module StoreModel # :nodoc:
  class << self
    def config
      @config ||= Configuration.new
    end

    # @return instance [Types::OneOf]
    def one_of(&block)
      Types::OneOf.new(&block)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
store_model-0.11.0 lib/store_model.rb
store_model-0.10.0 lib/store_model.rb
store_model-0.9.0 lib/store_model.rb
store_model-0.8.2 lib/store_model.rb
store_model-0.8.1 lib/store_model.rb
store_model-0.8.0 lib/store_model.rb