Allow to pass the destination link for the geozone link

Previous to this commit the geozone link shown in the
legislation proposal page was pointing to the proposals
process feature instead to the legislation proposals.
This commit is contained in:
Senén Rodero Rodríguez
2023-06-12 13:57:00 +02:00
parent b3c294bb9a
commit a6b1866908
5 changed files with 21 additions and 5 deletions

View File

@@ -1,8 +1,9 @@
class Shared::GeozoneLinkComponent < ApplicationComponent
attr_reader :geozonable
attr_reader :geozonable, :link
delegate :geozone_name, to: :helpers
def initialize(geozonable)
def initialize(geozonable, link)
@geozonable = geozonable
@link = link
end
end