diff options
| author | Teddy Wing | 2017-11-22 18:35:07 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-27 17:00:32 +0100 |
| commit | cd6e13d4ea86de054911a2c9bab0e733ba63095f (patch) | |
| tree | dbdc097b02f974e26805ad26c3a2a17d2f880e06 | |
| parent | 009098874814217e6821b31ca02cf37e2e880a68 (diff) | |
| download | chouette-core-cd6e13d4ea86de054911a2c9bab0e733ba63095f.tar.bz2 | |
ReferentialsController: Fix typo in `build_referenial` name
Rename the method to `build_referential`. Saw it because my project grep
didn't work.
Refs #5024
| -rw-r--r-- | app/controllers/referentials_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index b63741ef6..d6c4327f9 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -8,13 +8,13 @@ class ReferentialsController < InheritedResources::Base def new new! do - build_referenial + build_referential end end def create create! do |format| - build_referenial + build_referential if !!@referential.created_from_id format.html { redirect_to workbench_path(@referential.workbench) } @@ -132,7 +132,7 @@ class ReferentialsController < InheritedResources::Base super end - def build_referenial + def build_referential if params[:from] source_referential = Referential.find(params[:from]) @referential = Referential.new_from(source_referential, current_functional_scope) |
