Extract method to open links in a new window
This way we can slightly simplify the code.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class Proposals::NewComponent < ApplicationComponent
|
||||
include Header
|
||||
attr_reader :proposal
|
||||
delegate :new_window_link_to, to: :helpers
|
||||
|
||||
def initialize(proposal)
|
||||
@proposal = proposal
|
||||
|
||||
Reference in New Issue
Block a user