diff options
| author | Zog | 2018-01-17 10:16:55 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-25 17:18:00 +0100 | 
| commit | fc462f368bc45143b9f0b8649e5bec1f69e414c7 (patch) | |
| tree | 568369ff753ff1b2e7d74ad884d580d65d86671e /app/controllers/referentials_controller.rb | |
| parent | b802b16973bbf760aa8af720856c4127656c2e07 (diff) | |
| download | chouette-core-fc462f368bc45143b9f0b8649e5bec1f69e414c7.tar.bz2 | |
Refs #5586 @1h; Refactor ReferentialDecorator
Plus:
- Fix a bug on `html_options` in AF83::Decorator::Link
- Add a `t` helper in AF83::Decorator to handle i18n
Diffstat (limited to 'app/controllers/referentials_controller.rb')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 436d5ccb5..41ddc3870 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -80,6 +80,7 @@ class ReferentialsController < ChouetteController      referential.archive!      redirect_to workbench_path(referential.workbench_id), notice: t('notice.referential.archived')    end +    def unarchive      if referential.unarchive!        flash[:notice] = t('notice.referential.unarchived') @@ -97,7 +98,7 @@ class ReferentialsController < ChouetteController    helper_method :current_referential    def resource -    @referential ||= current_organisation.find_referential(params[:id]) +    @referential ||= current_organisation.find_referential(params[:id]).decorate    end    def collection | 
