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:
7
app/components/budgets/investments/new_component.rb
Normal file
7
app/components/budgets/investments/new_component.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Budgets::Investments::NewComponent < ApplicationComponent
|
||||
attr_reader :budget
|
||||
|
||||
def initialize(budget)
|
||||
@budget = budget
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user