diff --git a/core/app/models/spree/base.rb b/core/app/models/spree/base.rb index a413e7745ee..558515fa78f 100644 --- a/core/app/models/spree/base.rb +++ b/core/app/models/spree/base.rb @@ -23,6 +23,10 @@ def self.preference(*args) if Kaminari.config.page_method_name != :page def self.page(num) + Spree::Deprecation.warn \ + "Redefining Spree::Base.page for a different kaminari page name is better done inside " \ + "your own app. This will be removed from future versions of solidus." + send Kaminari.config.page_method_name, num end end