Skip to content

Commit

Permalink
Update callback on Fs::Box
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 18, 2024
1 parent e01b26c commit 80eab2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/fs/box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class Fs::Box < Box
DISABLED_MESSAGE_DRAFTS_IMPORT_KEYWORDS = ['(oblasť SPD)']

after_create { update(syncable: tenant.feature_enabled?(:fs_sync)) }
before_create { self.syncable = tenant.feature_enabled?(:fs_sync) }

validates_uniqueness_of :name, :short_name, scope: :tenant_id

Expand Down

0 comments on commit 80eab2a

Please sign in to comment.