Breadcrumb for dashboard (tags and categories cannot link to original module index)

This commit is contained in:
chris committed 2013-07-29 17:34:03 +08:00
1 parent fe10cc62d9
commit d190a50046
6 files changed
+61 -4

No files matched your search

@@ -136,7 +136,7 @@ class Admin::AuthorizationsController < OrbitBackendController
@module_app = ModuleApp.first(conditions: {:key => params[:module]} ) if params[:module]
@type = params[:type].underscore if params[:type]
if @type
@klass = @type.classify.constantize
@klass = @type.classify.constantize rescue nil
@object = @klass.find(params[:id]) rescue nil
end
end