Skip to content

Commit d76e48b

Browse files
committed
Fix compatibility with JBuilder 2.11.3
Turn page_types into array since JBuilder 2.11.3 (rails/jbuilder#501) requires collection to respond to `empty?`, which `Enumerable` does not provide. See also rails/jbuilder#514 REDMINE-19357
1 parent 64c0781 commit d76e48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/pageflow/page_types_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module PageTypesHelper
44

55
def page_type_json_seeds(config)
66
render_json_partial('pageflow/page_types/page_type',
7-
collection: config.page_types,
7+
collection: config.page_types.to_a,
88
as: :page_type)
99
end
1010

0 commit comments

Comments
 (0)