Sha256: 0d62f721b04aeb871de0a005bed217c065ea4ce3f1bf67fcb57c4757ad27afc7

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
detour-0.0.15 app/helpers/detour/flags_helper.rb
detour-0.0.14 app/helpers/detour/flags_helper.rb
detour-0.0.13 app/helpers/detour/flags_helper.rb
detour-0.0.12 app/helpers/detour/flags_helper.rb
detour-0.0.11 app/helpers/detour/flags_helper.rb
detour-0.0.10 app/helpers/detour/flags_helper.rb
detour-0.0.9 app/helpers/detour/flags_helper.rb
detour-0.0.7 app/helpers/detour/flags_helper.rb
detour-0.0.6 app/helpers/detour/flags_helper.rb
detour-0.0.5 app/helpers/detour/flags_helper.rb