Skip to content

Commit 42b5032

Browse files
committed
add active? status to org for organization_ability
1 parent a579492 commit 42b5032

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/models/organization.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ def most_used_template_ids(amount = 5)
417417
.map { |arr| arr[0].id }
418418
end
419419

420+
def active?
421+
!deactivated?
422+
end
423+
420424
private
421425

422426
def should_generate_new_friendly_id?

0 commit comments

Comments
 (0)