mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
fix message on raise of pagination links class
This commit is contained in:
parent
e0d050d2af
commit
77a8f66ad8
@ -41,8 +41,10 @@ module ActiveModel
|
|||||||
|
|
||||||
def raise_unless_any_gem_installed
|
def raise_unless_any_gem_installed
|
||||||
return if defined?(WillPaginate) || defined?(Kaminari)
|
return if defined?(WillPaginate) || defined?(Kaminari)
|
||||||
raise "AMS relies on either Kaminari or WillPaginate." +
|
raise <<-EOF
|
||||||
"Please install either dependency by adding one of those to your Gemfile"
|
AMS relies on either Kaminari or WillPaginate for pagination.
|
||||||
|
Please install either dependency by adding one of those to your Gemfile.
|
||||||
|
EOF
|
||||||
end
|
end
|
||||||
|
|
||||||
def url(options)
|
def url(options)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user