Add remote translations to budget investments
This commit is contained in:
@@ -49,6 +49,7 @@ module Budgets
|
|||||||
|
|
||||||
load_investment_votes(@investments)
|
load_investment_votes(@investments)
|
||||||
@tag_cloud = tag_cloud
|
@tag_cloud = tag_cloud
|
||||||
|
@remote_translations = detect_remote_translations(@investments)
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@@ -61,6 +62,7 @@ module Budgets
|
|||||||
set_comment_flags(@comment_tree.comments)
|
set_comment_flags(@comment_tree.comments)
|
||||||
load_investment_votes(@investment)
|
load_investment_votes(@investment)
|
||||||
@investment_ids = [@investment.id]
|
@investment_ids = [@investment.id]
|
||||||
|
@remote_translations = detect_remote_translations([@investment], @comment_tree.comments)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|||||||
@@ -29,6 +29,15 @@ describe "Budget Investments" do
|
|||||||
"new_budget_investment_path",
|
"new_budget_investment_path",
|
||||||
%w[title],
|
%w[title],
|
||||||
{ "description" => :ckeditor }
|
{ "description" => :ckeditor }
|
||||||
|
it_behaves_like "remotely_translatable",
|
||||||
|
:budget_investment,
|
||||||
|
"budget_investments_path",
|
||||||
|
{ "budget_id": "budget_id" }
|
||||||
|
|
||||||
|
it_behaves_like "remotely_translatable",
|
||||||
|
:budget_investment,
|
||||||
|
"budget_investment_path",
|
||||||
|
{ "budget_id": "budget_id", "id": "id" }
|
||||||
end
|
end
|
||||||
|
|
||||||
context "Load" do
|
context "Load" do
|
||||||
|
|||||||
Reference in New Issue
Block a user