merge with november_presentation
This commit is contained in:
1 parent
afbffe37d5
commit
a09f8e4551
101 files changed
+891
-10632
No files matched your search
@@ -0,0 +1,17 @@
|
||||
class Admin::AppAuthsController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :is_admin?
|
||||
|
||||
def index
|
||||
@roles = Role.all.entries
|
||||
apps = Purchase.where(:type =>"App")
|
||||
@app_auth_data = apps.entries.map do |app|
|
||||
app_c = eval(app.app_controller)
|
||||
obj = app_c.new
|
||||
obj_auth = obj.send "auth"
|
||||
[:app_obj => app,:auth_field => obj_auth]
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user