Sha256: 798a483f08427f94e8cae1eb98618863e5412025871b36eee06d31d413ffbc18
Contents?: true
Size: 381 Bytes
Versions: 3
Compression:
Stored size: 381 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trailer_vote-fixtures-1.16.0 | lib/trailer_vote/fixtures.rb |
trailer_vote-fixtures-1.15.0 | lib/trailer_vote/fixtures.rb |
trailer_vote-fixtures-1.2.0 | lib/trailer_vote/fixtures.rb |