Sha256: c397b4ccfc78d27e83bd65b27a8e4b3c23efb8bf0d43d62dc346f8165a959491

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

module SelectionsHelper
  def selector(selection)
    if selection.leaf?
      link_to_unless selection.parent.try(:is_system), selection.name,
                     edit_selection_selection_path(@parent, selection)
    else
      link_to selection.name, selection_selections_path(selection)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
selections-1.1.1 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.0.5 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.0.4 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.1.0 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.0.3 lib/generators/selections_scaffold/templates/selections_helper.rb