lib/diver_down/web/action.rb in diver_down-0.0.1.alpha2 vs lib/diver_down/web/action.rb in diver_down-0.0.1.alpha3
- old
+ new
@@ -117,11 +117,12 @@
#
# @param page [Integer]
# @param per [Integer]
# @param title [String]
# @param source [String]
- def definitions(page:, per:, title:, source:)
- definition_enumerator = DiverDown::Web::DefinitionEnumerator.new(@store, title:, source:)
+ # @param definition_group [String]
+ def definitions(page:, per:, title:, source:, definition_group:)
+ definition_enumerator = DiverDown::Web::DefinitionEnumerator.new(@store, title:, source:, definition_group:)
definitions, pagination = paginate(definition_enumerator, page, per)
json(
definitions: definitions.map do |definition|
{