Module: DesignManagement

Defined in:
app/models/design_management/design_at_version.rb,
app/models/design_management.rb,
app/models/design_management/action.rb,
app/models/design_management/design.rb,
app/models/design_management/version.rb,
app/models/design_management/repository.rb,
app/models/design_management/design_action.rb,
app/finders/design_management/designs_finder.rb,
app/policies/design_management/design_policy.rb,
app/finders/design_management/versions_finder.rb,
app/policies/design_management/version_policy.rb,
app/services/design_management/design_service.rb,
app/models/design_management/design_collection.rb,
app/workers/design_management/new_version_worker.rb,
app/services/design_management/runs_design_actions.rb,
app/services/design_management/move_designs_service.rb,
app/services/design_management/on_success_callbacks.rb,
app/services/design_management/save_designs_service.rb,
app/services/design_management/delete_designs_service.rb,
app/policies/design_management/design_at_version_policy.rb,
app/policies/design_management/design_collection_policy.rb,
app/uploaders/design_management/design_v432x230_uploader.rb,
app/services/design_management/design_user_notes_count_service.rb,
app/services/design_management/generate_image_versions_service.rb

Overview

Tuple of design and version

  • has a composite ID, with lazy_find

Defined Under Namespace

Modules: OnSuccessCallbacks, RunsDesignActions Classes: Action, DeleteDesignsService, Design, DesignAction, DesignAtVersion, DesignAtVersionPolicy, DesignCollection, DesignCollectionPolicy, DesignPolicy, DesignService, DesignUserNotesCountService, DesignV432x230Uploader, DesignsFinder, GenerateImageVersionsService, MoveDesignsService, NewVersionWorker, Repository, SaveDesignsService, Version, VersionPolicy, VersionsFinder

Constant Summary collapse

DESIGN_IMAGE_SIZES =
%w(v432x230).freeze

Class Method Summary collapse

Class Method Details

.designs_directoryObject


6
7
8
# File 'app/models/design_management.rb', line 6

def self.designs_directory
  'designs'
end

.table_name_prefixObject


10
11
12
# File 'app/models/design_management.rb', line 10

def self.table_name_prefix
  'design_management_'
end