Sha256: 694b577e96a0b52e26cb7d1947c3204e9b1ba0694df69d5893d02ed61ece8995

Contents?: true

Size: 366 Bytes

Versions: 28

Compression:

Stored size: 366 Bytes

Contents

require 'trailer_vote/fixtures/version'
require 'oj'

module TrailerVote
  module Fixtures
    FIXTURE_DIRECTORY = File.expand_path(File.join(__dir__, 'fixtures')).freeze

    module_function

    def load(media_type, options = Oj.default_options)
      path = File.join(FIXTURE_DIRECTORY, *media_type.split('/'))
      Oj.load_file(path, options)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trailer_vote-fixtures-1.17.5 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.17.4 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.17.3 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.17.2 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.17.1 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.17.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.14.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.13.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.12.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.11.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.10.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.9.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.8.2 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.7.2 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.7.1 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.7.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.6.4 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.6.2 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.6.1 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.6.0 lib/trailer_vote/fixtures.rb