Sha256: adc0e10ae05fc79f2afff8f26a73b233e3a11945b91cf387f725e412886dfbdb
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
module Machinist # Configure Machinist. # # To change Machinist configuration, do something like this in your # config/environments/test.rb or somewhere similar: # # Machinist.configure do |config| # config.cache_objects = false # end class Configuration # Set this to false to disable object caching. Defaults to true. attr_accessor :cache_objects def cache_objects? #:nodoc: @cache_objects end def initialize #:nodoc: self.cache_objects = true end end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
machinist-2.0.0.beta2 | lib/machinist/configuration.rb |