Skip to content

Commit 77a8f66

Browse files
committed
fix message on raise of pagination links class
1 parent e0d050d commit 77a8f66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/active_model/serializer/adapter/json_api/pagination_links.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def pages_from
4141

4242
def raise_unless_any_gem_installed
4343
return if defined?(WillPaginate) || defined?(Kaminari)
44-
raise "AMS relies on either Kaminari or WillPaginate." +
45-
"Please install either dependency by adding one of those to your Gemfile"
44+
raise <<-EOF
45+
AMS relies on either Kaminari or WillPaginate for pagination.
46+
Please install either dependency by adding one of those to your Gemfile.
47+
EOF
4648
end
4749

4850
def url(options)

0 commit comments

Comments
 (0)