Fix approval in index

This commit is contained in:
chris committed 2013-07-10 16:42:25 +08:00
1 parent 2c331bf1a5
commit 1c4b66f1cb
9 files changed
+76 -66

No files matched your search

+1 -22
View File
@@ -13,25 +13,4 @@ class Category
scope :enabled, where(:disable.in => [false, nil, ''])
end
# base.instance_eval("scope :admin_manager_all,find(:all)")
# base.define_singleton_method :find do |*args|
# if args ==[:all]
# unscoped
# else
# res = unscoped.find(args)
# res.count == 1 ? res[0] : res
# end
# end
# base.define_singleton_method :first do |*args|
# all.first
# end
# base.define_singleton_method :last do |*args|
# all.last
# end
end
+2
View File
@@ -22,7 +22,9 @@ class ModuleApp
self[:widgets] = reg.get_widgets
self[:has_tag] = reg.get_has_tags
self[:has_category] = reg.get_has_category
self[:is_approvable] = reg.get_is_approvable
self[:is_authorizable] = reg.get_is_authorizable
self[:authorizable_models] = reg.get_authorizable_models
end