spree/spree — pull request #4182 by daddeo2 (2014-01-09 17:32:27+00:00)
Title: Update payments_controller.rb w/ model_class

Define the model_class function so authorization in base_controller works as expected in the backend with payments. Without this authorization fails even for users whose role includes can :manage, Payment because Admin::BaseController isn't authorizing on Spree::Payment.