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.7.pre8 app/volt/controllers/notices_controller.rb
volt-0.9.7.pre7 app/volt/controllers/notices_controller.rb
volt-0.9.7.pre6 app/volt/controllers/notices_controller.rb
volt-0.9.7.pre5 app/volt/controllers/notices_controller.rb
volt-0.9.7.pre3 app/volt/controllers/notices_controller.rb
volt-0.9.7.pre2 app/volt/controllers/notices_controller.rb
volt-0.9.6 app/volt/controllers/notices_controller.rb
volt-0.9.6.pre3 app/volt/controllers/notices_controller.rb
volt-0.9.6.pre2 app/volt/controllers/notices_controller.rb
volt-0.9.6.pre1 app/volt/controllers/notices_controller.rb
volt-0.9.5 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre12 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre11 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre9 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre8 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre7 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre6 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre5 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre4 app/volt/controllers/notices_controller.rb
volt-0.9.5.pre3 app/volt/controllers/notices_controller.rb