mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 02:20:16 +01:00
More code style fixes
This commit is contained in:
parent
465419f46a
commit
d4c9041ccd
61 changed files with 406 additions and 422 deletions
|
|
@ -5,9 +5,9 @@ module BootstrapFlashHelper
|
|||
:error => :danger,
|
||||
:info => :info,
|
||||
:warning => :warning
|
||||
} unless const_defined?(:ALERT_MAPPING)
|
||||
}.freeze unless const_defined?(:ALERT_MAPPING)
|
||||
|
||||
def bootstrap_flash(options = {:close_button => true})
|
||||
def bootstrap_flash(options = { :close_button => true })
|
||||
flash_messages = []
|
||||
flash.each do |type, message|
|
||||
# Skip empty messages, e.g. for devise messages set to nothing in a locale file.
|
||||
|
|
@ -15,7 +15,6 @@ module BootstrapFlashHelper
|
|||
type = type.to_sym
|
||||
next unless ALERT_MAPPING.keys.include?(type)
|
||||
|
||||
|
||||
tag_class = options.extract!(:class)[:class]
|
||||
tag_options = {
|
||||
class: "alert fade in alert-#{ALERT_MAPPING[type]} #{tag_class}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue