Sha256: 7ade38b73bf1f27cd4494abc4ba06f3a6374bfd341db627488fc84b626f230c2

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 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

7 entries across 7 versions & 1 rubygems

Version Path
selections-1.0.2 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.0.1 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-1.0.0 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-0.2.2 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-0.2.1 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-0.1.14 lib/generators/selections_scaffold/templates/selections_helper.rb
selections-0.1.13 lib/generators/selections_scaffold/templates/selections_helper.rb