app/models/chunks/chunk.rb in Pimki-1.3.092 vs app/models/chunks/chunk.rb in Pimki-1.4.092
- old
+ new
@@ -9,12 +9,12 @@
module Chunk
class Abstract
attr_reader :text, :revision
def initialize(match_data, revision) @text = match_data[0]; @revision = revision end
- def pre_mask() "chunk#{self.id}start " end
- def post_mask() " chunk#{self.id}end" end
- def mask(content) "chunk#{self.id}chunk" end
+ def pre_mask() "chunk#{self.object_id}start " end
+ def post_mask() " chunk#{self.object_id}end" end
+ def mask(content) "chunk#{self.object_id}chunk" end
def revert(content) content.sub!( Regexp.new(mask(content)), text ) end
def unmask(content) self if revert(content) end
end
end