Module: Detour::FlagsHelper

Defined in:
app/helpers/detour/flags_helper.rb

Instance Method Summary collapse

Instance Method Details

#github_prefixObject



2
3
4
# File 'app/helpers/detour/flags_helper.rb', line 2

def github_prefix
  "https://github.com/#{ENV["DETOUR_GITHUB_REPO"]}/blob/#{ENV["DETOUR_GITHUB_BRANCH"]}/"
end

#spacer_countObject



6
7
8
9
10
# File 'app/helpers/detour/flags_helper.rb', line 6

def spacer_count
  names_count = @flag_form.groups.length
  difference  = 10 - names_count
  count       = difference < 0 ? 0 : difference
end