Module: Corzinus::ApplicationHelper

Defined in:
app/helpers/corzinus/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#alert_class(key) ⇒ Object



7
8
9
10
11
12
13
# File 'app/helpers/corzinus/application_helper.rb', line 7

def alert_class(key)
  case key
  when 'notice' then 'success'
  when 'alert' then 'warning'
  else key
  end
end

#currency_price(price) ⇒ Object



3
4
5
# File 'app/helpers/corzinus/application_helper.rb', line 3

def currency_price(price)
  number_to_currency price, locale: :eu
end