aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-11-22 18:35:07 +0100
committerTeddy Wing2017-11-27 17:00:32 +0100
commitcd6e13d4ea86de054911a2c9bab0e733ba63095f (patch)
treedbdc097b02f974e26805ad26c3a2a17d2f880e06 /app/controllers/referentials_controller.rb
parent009098874814217e6821b31ca02cf37e2e880a68 (diff)
downloadchouette-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
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb6
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)