Class: Flipside::Web

Inherits:
Roda
  • Object
show all
Includes:
Importmap
Defined in:
lib/flipside/web.rb

Constant Summary

Constants included from Importmap

Importmap::LIBRARIES

Instance Method Summary collapse

Methods included from Importmap

#importmap_tags

Instance Method Details

#load_feature(name) ⇒ Object



36
37
38
39
40
# File 'lib/flipside/web.rb', line 36

def load_feature(name)
  Flipside::Feature.find_by!(name:)
rescue
  r.halt 404, view(:not_found)
end