Move new budget investment view to a component

That way we'll be able to simplify some of the code.
This commit is contained in:
Javi Martín
2021-07-10 02:09:21 +02:00
parent 937450ff4e
commit 640a0ba83c
3 changed files with 27 additions and 19 deletions

View File

@@ -0,0 +1,7 @@
class Budgets::Investments::NewComponent < ApplicationComponent
attr_reader :budget
def initialize(budget)
@budget = budget
end
end