fix message on raise of pagination links class

This commit is contained in:
Bruno Bacarini 2015-08-11 16:58:36 -03:00
parent e0d050d2af
commit 77a8f66ad8

View File

@ -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)