Files
grecia/app/components/shared/geozone_link_component.rb
Senén Rodero Rodríguez a6b1866908 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.
2023-06-14 14:31:44 +02:00

10 lines
222 B
Ruby

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