Sha256: 9d8b5192510899cfdad612066215519c9b414ef214739e4e9ce6d4a4b7e9c10a
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
module Enumerable def with_fortschritt(opts = {}) Fortschritt.init(size, opts) self end end class Object def fortschritt Fortschritt.increment self end end if defined?(Rails) module Fortschritt::ActiveRecordExtension extend ActiveSupport::Concern def with_fortschritt(opts = {}) Fortschritt.init(size, opts) self end end ActiveRecord::Relation.send(:include, Fortschritt::ActiveRecordExtension) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fortschritt-0.2.6 | lib/fortschritt/enumerable.rb |
fortschritt-0.2.4 | lib/fortschritt/enumerable.rb |