app/models/submission/state_machine.rb
Method configure_state_machine
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def configure_state_machine # rubocop:todo Metrics/AbcSize, Metrics/MethodLength
aasm column: :state, whiny_persistence: true do
state :building, initial: true, exit: :valid_for_leaving_building_state
state :pending, after_enter: :queue_submission_builder
state :processing, enter: :process_submission!, exit: :process_callbacks!