Module: Account::ButtonsHelper

Defined in:
app/helpers/account/buttons_helper.rb

Instance Method Summary collapse

Instance Method Details

#first_button_primary(context = nil) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/account/buttons_helper.rb', line 2

def first_button_primary(context = nil)
  @global ||= {}

  if !@global[context]
    @global[context] = true
    "button"
  else
    "button-secondary"
  end
end