Sha256: 8d66f92ea54e094cdc646917cc9a4819c00262b344928949051104a014c47674

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

require File.expand_path('../../base_controller_decorator', __FILE__)
Spree::Admin::BaseController.class_eval do
  protected
    def model_class
      "Spree::#{controller_name.classify}".constantize
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_auth_devise-1.3.1 app/controllers/spree/admin/admin_controller_decorator.rb
spree_auth_devise-1.2.0 app/controllers/spree/admin/admin_controller_decorator.rb
spree_auth_devise-1.0.1 app/controllers/spree/admin/admin_controller_decorator.rb
spree_auth_devise-1.0.0 app/controllers/spree/admin/admin_controller_decorator.rb