mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 16:58:35 -04:00
Tidier path the member data
This commit is contained in:
@@ -70,8 +70,8 @@ module ApplicationHelper
|
||||
def show_inactive_tickbox_path(type, owner, show_all)
|
||||
all = show_all ? '' : 1
|
||||
if owner
|
||||
return member_plantings_path(member_slug: owner.slug, all: all) if type == 'plantings'
|
||||
return member_gardens_path(member_slug: owner.slug, all: all) if type == 'gardens'
|
||||
return member_plantings_path(owner, all: all) if type == 'plantings'
|
||||
return member_gardens_path(owner, all: all) if type == 'gardens'
|
||||
end
|
||||
|
||||
return plantings_path(all: all) if type == 'plantings'
|
||||
|
||||
Reference in New Issue
Block a user