diff options
| author | Xinhui | 2017-02-07 15:08:24 +0100 |
|---|---|---|
| committer | Xinhui | 2017-02-07 15:08:24 +0100 |
| commit | c5848ae804d74064290dc4d9804b8766805c5b8b (patch) | |
| tree | 16b902002d2eac7069f151d2fe63ab737811947a | |
| parent | 6bf15bcdb476d7b39f4aa48a2f59ca04b96b8be6 (diff) | |
| download | chouette-core-c5848ae804d74064290dc4d9804b8766805c5b8b.tar.bz2 | |
Fix undefined method current_referential on referential#show
| -rw-r--r-- | app/controllers/referentials_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 78d55f94b..5ec4fc2cf 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -68,6 +68,9 @@ class ReferentialsController < BreadcrumbController protected alias_method :referential, :resource + alias_method :current_referential, :referential + helper_method :current_referential + def resource @referential ||= current_organisation.referentials.find_by_id(params[:id]) |
