Sha256: d52fb446606203aae8daec36b16fa016079f3cbb5db3749191443bcf9c31ece6
Contents?: true
Size: 267 Bytes
Versions: 38
Compression:
Stored size: 267 Bytes
Contents
module Helpers # Reloads the specified model class. # # @param [ String | Symbol ] name Class name to reload. def reload_model(name) Object.class_eval do remove_const(name) end load "spec/support/models/#{name.to_s.underscore}.rb" end end
Version data entries
38 entries across 38 versions & 1 rubygems