uses plain ruby SecureRandom

pull/6827/head
Jens Ulferts 12 years ago
parent 8c1d83f2cc
commit 6e97fdb1f2
  1. 2
      app/helpers/rb_common_helper.rb

@ -43,7 +43,7 @@ module RbCommonHelper
end
def modal_link_to(title, path, options = {})
html_id = "modal_issue_#{ActiveSupport::SecureRandom.hex(10)}"
html_id = "modal_issue_#{SecureRandom.hex(10)}"
link_to(title, path, options.merge(:id => html_id)) +
javascript_tag("new Backlogs.ModalLink('#{html_id}')")
end

Loading…
Cancel
Save