Move new proposal view to a component
This commit is contained in:
7
app/components/proposals/new_component.rb
Normal file
7
app/components/proposals/new_component.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Proposals::NewComponent < ApplicationComponent
|
||||
attr_reader :proposal
|
||||
|
||||
def initialize(proposal)
|
||||
@proposal = proposal
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user