Module: Pageflow::Admin::CutoffModesHelper Private

Defined in:
app/helpers/pageflow/admin/cutoff_modes_helper.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#cutoff_modes_collection(config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



5
6
7
8
9
# File 'app/helpers/pageflow/admin/cutoff_modes_helper.rb', line 5

def cutoff_modes_collection(config)
  config.cutoff_modes.names.map do |name|
    [t(name, scope: 'pageflow.cutoff_modes'), name]
  end
end