Sha256: 55b223ebd8ef227b97f133d509ffb60a19f068b2eaf14c05af6a15f982325466

Contents?: true

Size: 338 Bytes

Versions: 68

Compression:

Stored size: 338 Bytes

Contents

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

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
volt-0.8.24 app/volt/controllers/notices_controller.rb
volt-0.8.23 app/volt/controllers/notices_controller.rb
volt-0.8.22 app/volt/controllers/notices_controller.rb
volt-0.8.22.beta2 app/volt/controllers/notices_controller.rb
volt-0.8.22.beta1 app/volt/controllers/notices_controller.rb
volt-0.8.21 app/volt/controllers/notices_controller.rb
volt-0.8.20 app/volt/controllers/notices_controller.rb
volt-0.8.19 app/volt/controllers/notices_controller.rb