Sha256: 4e35a0729f026ded14941cbd84115b91a3b2d23354452a28de98bc0eef62242d

Contents?: true

Size: 232 Bytes

Versions: 8

Compression:

Stored size: 232 Bytes

Contents

module FamilyGallery::GroupsHelper
  def link_to_group(group)
    group_name = group.name
    group_name = "[#{FamilyGallery::Group.model_name.human} #{group.id}]" unless group_name.present?

    link_to group_name, group
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.7 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.6 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.5 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.4 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.3 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.2 app/helpers/family_gallery/groups_helper.rb
family_gallery-0.0.1 app/helpers/family_gallery/groups_helper.rb