Sha256: 1a3febbc1c0b8d2fdd6abb429dc7dd522242923f9c7f62f7940fb3c318930819

Contents?: true

Size: 710 Bytes

Versions: 6

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

buoy :account do
  link :account, 'http://example.com/account'
end

buoy :books do
  link 'Books', 'http://example.com/books'
end

buoy :show_books do |number|
  parent :books
  link "show-#{number}", "http://example.com/books/#{number}", link_current: true
end

buoy :edit_book_author do |book_id, author_id|
  parent :books
  link "edit-#{book_id}-#{author_id}", "http://example.com/books/#{book_id}/authors/#{author_id}/edit", link_current: true
end

buoy :show_user_item do |user, item|
  link :show_user_item, [user, item]
end

buoy :edit_user_item do |user, item|
  pre_buoy :show_user_item, [user, item]
  link :edit_user_item, [:edit, user, item], link_current: true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
buoys-2.1.0 test/dummy/config/buoys/buoys.rb
buoys-2.0.2 test/dummy/config/buoys/buoys.rb
buoys-2.0.1 test/dummy/config/buoys/buoys.rb
buoys-2.0.0 test/dummy/config/buoys/buoys.rb
buoys-1.1.0 test/dummy/config/buoys/buoys.rb
buoys-1.0.0 test/dummy/config/buoys/buoys.rb