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.9.5.pre2 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre1 app/volt/controllers/notices_controller.rb
volt-0.9.4 app/volt/controllers/notices_controller.rb
volt-0.9.4.pre5 app/volt/controllers/notices_controller.rb
volt-0.9.4.pre3 app/volt/controllers/notices_controller.rb
volt-0.9.4.pre2 app/volt/controllers/notices_controller.rb
volt-0.9.4.pre1 app/volt/controllers/notices_controller.rb
volt-0.9.3 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre6 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre5 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre4 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre3 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre2 app/volt/controllers/notices_controller.rb
volt-0.9.3.pre1 app/volt/controllers/notices_controller.rb
volt-0.9.2 app/volt/controllers/notices_controller.rb
volt-0.9.1 app/volt/controllers/notices_controller.rb
volt-0.9.1.pre5 app/volt/controllers/notices_controller.rb
volt-0.9.1.pre4 app/volt/controllers/notices_controller.rb
volt-0.9.1.pre3 app/volt/controllers/notices_controller.rb
volt-0.9.1.pre2 app/volt/controllers/notices_controller.rb