Module: MetadataPresenter::Concerns::SaveAndReturn
- Extended by:
- ActiveSupport::Concern
- Included in:
- ResumeController, SaveAndReturnController
- Defined in:
- app/controllers/metadata_presenter/concerns/save_and_return.rb
Instance Method Summary collapse
Instance Method Details
#label_text(text) ⇒ Object
26 27 28 |
# File 'app/controllers/metadata_presenter/concerns/save_and_return.rb', line 26 def label_text(text) "<h2 class='govuk-heading-m'>#{text}</h2>" end |
#page_slug ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/metadata_presenter/concerns/save_and_return.rb', line 10 def page_slug if params && params[:page_slug].present? return params[:page_slug] end if session['returning_slug'].present? return session['returning_slug'] end if session['saved_form'].present? return session['saved_form']['page_slug'] end if params['saved_form'].present? params['saved_form']['page_slug'] end end |