Module: RepositoryStorageMovable
- Extended by:
- ActiveSupport::Concern
- Includes:
- AfterCommitQueue
- Defined in:
- app/models/concerns/repository_storage_movable.rb
Instance Method Summary collapse
- #add_error(message) ⇒ Object
- #schedule_repository_storage_update_worker ⇒ Object
-
#update_repository_storage(new_storage) ⇒ Object
Projects, snippets, and group wikis has different db structure.
Methods included from AfterCommitQueue
#run_after_commit, #run_after_commit_or_now
Instance Method Details
#add_error(message) ⇒ Object
108 109 110 |
# File 'app/models/concerns/repository_storage_movable.rb', line 108 def add_error() errors.add(error_key, ) end |
#schedule_repository_storage_update_worker ⇒ Object
104 105 106 |
# File 'app/models/concerns/repository_storage_movable.rb', line 104 def schedule_repository_storage_update_worker raise NotImplementedError end |
#update_repository_storage(new_storage) ⇒ Object
Projects, snippets, and group wikis has different db structure. In projects, we need to update some columns in this step, but we don’t with the other resources.
Therefore, we create this No-op method for snippets and wikis and let project overwrite it in their implementation.
100 101 102 |
# File 'app/models/concerns/repository_storage_movable.rb', line 100 def update_repository_storage(new_storage) # No-op end |