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