<% if cookies.kind_of? ActionDispatch::Cookies::CookieJar %> <% if cookies && cookies['cookie_eu_consented'] != 'true' %>
> <%= t('cookies_eu.cookies_text') %> <% if defined?(link).present? %> <%= t('cookies_eu.learn_more') %> <% end %>
<% end %> <% else %> <% raise Exception.new "'cookies' is a reserved Rails class, please rename your method" %> <% end %>