Sha256: 5a1782462c4a7ae1ab68eb2900d8cafe3e1d8ba4c8aeaaf39f27c6589799dc10
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
# This patches the basic Array object. # class Array # Pass the `reload` to all objects in the array # if they respond to `reload`. # # This is used in model caching. # See, for exmaple, `app/models/cache_store_extension.rb`. # def reload collect { |element| element.reload if element.respond_to?(:reload) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | app/models/array.rb |
your_platform-1.0.0 | app/models/array.rb |
your_platform-0.0.2 | app/models/array.rb |