Class: Blazer::Dashboard

Inherits:
Record
  • Object
show all
Defined in:
app/models/blazer/dashboard.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



13
14
15
# File 'app/models/blazer/dashboard.rb', line 13

def to_param
  [id, name.gsub("'", "").parameterize].join("-")
end

#variablesObject



9
10
11
# File 'app/models/blazer/dashboard.rb', line 9

def variables
  queries.flat_map { |q| q.variables }.uniq
end