Class: Maglev::RemoveSectionType

Inherits:
Object
  • Object
show all
Includes:
Injectable
Defined in:
app/services/maglev/remove_section_type.rb

Overview

Remove all sections of a specific type across a site and its pages

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'app/services/maglev/remove_section_type.rb', line 11

def call
  @removed_count = 0

  remove_sections

  @removed_count
end