Sha256: 6d05ff357155e50867fc117f20c8895e7db71dd6ff93abb9555de505e683fef3
Contents?: true
Size: 466 Bytes
Versions: 59
Compression:
Stored size: 466 Bytes
Contents
class MockAttachment attr_accessor :updated_at, :original_filename def initialize(options = {}) @model = options[:model] @responds_to_updated_at = options[:responds_to_updated_at] @updated_at = options[:updated_at] @original_filename = options[:original_filename] end def instance @model end def respond_to?(meth) if meth.to_s == "updated_at" @responds_to_updated_at || @updated_at else super end end end
Version data entries
59 entries across 57 versions & 7 rubygems