Method: ChartJS::Chart#random_id
- Defined in:
- lib/chart_js/chart/chart.rb
#random_id(force: false) ⇒ Object
86 87 88 89 |
# File 'lib/chart_js/chart/chart.rb', line 86 def random_id(force: false) return @id unless @id.nil? or force @id = SecureRandom.uuid end |