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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user