app/controllers/admin/kitsune/application_controller.rb in kitsune-0.0.5 vs app/controllers/admin/kitsune/application_controller.rb in kitsune-0.0.6
- old
+ new
@@ -1,21 +1,3 @@
class Admin::Kitsune::ApplicationController < ActionController::Base
- before_filter :load_models
-
- private
- def load_models
- models = Kitsune.models_with_admin.map{ |m| Kitsune::Inspector.new(m) }
- category_map = {}
-
- @models =[]
- models.each do |m|
- if m.category
- category_map[m.category] = [] unless category_map[m.category]
- category_map[m.category] << m
- else
- @models << m
- end
- end
- @models += category_map.to_a.map{|c| Hash[*c]}
- #@models = models
- end
+ # this class should only be overridden
end
\ No newline at end of file