Class: C::Slideshow

Inherits:
ApplicationRecord show all
Defined in:
app/models/c/slideshow.rb

Constant Summary collapse

INDEX_TABLE =
{
  'Name': { link: { name: { call: 'name' }, options: '[:edit, object]' } },
  'Description': { call: 'body&.html_safe' },
  'Slides': { link: { name: { call: 'slides.count' }, options: '[:edit, object]' } }
}.freeze

Instance Method Summary collapse

Instance Method Details

#machine_name=(val) ⇒ Object

Force non blank parametized machine name



13
14
15
# File 'app/models/c/slideshow.rb', line 13

def machine_name=(val)
  super val.to_s.parameterize
end