app/volt/controllers/notices_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Volt
  class NoticesController < ModelController
    model :page

    def hey
      'yep'
    end

    def map_key_class(key)
      case key
      when 'errors'
        'danger'
      when 'warnings'
        'warning'
      when 'successes'
        'success'
      else
        # notices
        'info'
      end
    end
  end
end