Move new proposal view to a component

This commit is contained in:
Javi Martín
2021-07-10 18:06:34 +02:00
parent a0ea206d15
commit 211bcb8a65
3 changed files with 33 additions and 24 deletions

View File

@@ -0,0 +1,7 @@
class Proposals::NewComponent < ApplicationComponent
attr_reader :proposal
def initialize(proposal)
@proposal = proposal
end
end