Sha256: 25ab909aacdcc7df6e0fab4eb5c4e25962859db6cb0ccea02d1c59922f1f5a73
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Toast class NoticesController < Volt::ModelController def index end def call_toast(text, css_class) `toast(text, 4000, css_class)` end def map_key_class(key) case key when 'errors' 'error' when 'warnings' 'warning' when 'successes' 'success' else # notices 'default' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volt-materialize-notices-0.0.1 | app/toast/controllers/notices_controller.rb |