Skip to content

Commit

Permalink
Move DRAFT_SYSTEM_NAME constant to Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 14, 2023
1 parent 0bbbb83 commit 7a0c5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/models/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class Tag < ApplicationRecord
after_update_commit ->(tag) { EventBus.publish(:tag_renamed, tag) if previous_changes.key?("name") }
after_destroy ->(tag) { EventBus.publish(:tag_destroyed, tag) }

DRAFT_SYSTEM_NAME = 'Drafts'

def mark_readable_by_groups(groups)
self.groups += groups
end
Expand Down
2 changes: 0 additions & 2 deletions app/models/tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class Tenant < ApplicationRecord

validates_presence_of :name

DRAFT_SYSTEM_NAME = 'Drafts'

private

def create_default_objects
Expand Down

0 comments on commit 7a0c5ed

Please sign in to comment.