class DraftSchoolsController
Public Instance Methods
Source
# File app/controllers/draft_schools_controller.rb, line 20 def show authorize Location, :new?, policy_class: SchoolPolicy render_wizard end
Source
# File app/controllers/draft_schools_controller.rb, line 26 def update authorize Location, :create?, policy_class: SchoolPolicy @draft_school.assign_attributes(update_params) case current_step when :confirm_urn handle_confirm_urn when :school handle_school when :confirm handle_confirm end jump_to("confirm") if @draft_school.editing? && current_step != :confirm reload_steps render_wizard @draft_school end