I wrapped SecureRandom.uuid
in the helper method random_uuid
, which is in config.rb
, to use in my posts as a unique id.
How can I get access to the random_uuid
method from the feed.xml.builder
file?
I thought that I should be able to access it from the block parameter like below, but that is not working.
blog("podcast").articles do |article|
xml.guid( article.random_uuid)
end