lib/generators/dry_crud/templates/app/helpers/standard_helper.rb
# Returns the css class for the given flash level.
Returns the css class for the given flash level.
Returns the css class for the given flash level .
def flash_class(level)
    case level
    when :notice then 'success'
    when :alert then 'error'
    else level.to_s
    end
  end
def flash_class ( level ) case level when :notice then 'success' when :alert then 'error' else level . to_s end end
Returns the css class for the given flash level.
Returns the css class for the given flash level .
level