review: move Prefillable to concern directory
This commit is contained in:
parent
3939644030
commit
ab30af5fe5
3 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Dossier::Prefillable
|
||||
module DossierPrefillableConcern
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def prefill!(champs_public_attributes)
|
|
@ -43,11 +43,10 @@
|
|||
# user_id :integer
|
||||
#
|
||||
class Dossier < ApplicationRecord
|
||||
include Dossier::Prefillable
|
||||
|
||||
self.ignored_columns = [:en_construction_conservation_extension]
|
||||
include DossierFilteringConcern
|
||||
include DossierRebaseConcern
|
||||
include DossierPrefillableConcern
|
||||
|
||||
enum state: {
|
||||
brouillon: 'brouillon',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe Dossier::Prefillable do
|
||||
RSpec.describe DossierPrefillableConcern do
|
||||
describe '.prefill!' do
|
||||
let(:procedure) { create(:procedure, :published) }
|
||||
let(:dossier) { create(:dossier, :brouillon, procedure: procedure) }
|
Loading…
Add table
Reference in a new issue