Sha256: 7292f6a3717248176fe977d4f085a77151a60c2f1a235da922bafe2b3324a0a3
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true module Gutentag::ActiveRecord::InstanceMethods def reset_tag_names @tag_names = nil end def tag_names @tag_names ||= tags.pluck(:name) end def tag_names=(names) Gutentag.dirtier.call self, names if Gutentag.dirtier @tag_names = names end private def persist_tags Gutentag::Persistence.new(Gutentag::ChangeState.new(self)).persist end end
Version data entries
4 entries across 4 versions & 1 rubygems