fix for showing subroles

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-11-26 10:08:06 +08:00
1 parent cc7907f37a
commit 046dbc9524
5 files changed
+12 -8

No files matched your search

@@ -22,6 +22,7 @@ class Admin::InfosController < ApplicationController
def edit
@attribute = Info.find(params[:id])
@attribute_fields_upper_object = [@attribute]
render :template => 'admin/attributes/edit'
end
+2 -1
View File
@@ -5,7 +5,7 @@ class Admin::RolesController < ApplicationController
before_filter :is_admin?
before_filter :set_attribute, :only => [:index, :show, :new, :edit]
helper Admin::AttributeValuesViewHelper
def index
@attributes = Role.all.entries
render :template => 'admin/attributes/index'
@@ -22,6 +22,7 @@ class Admin::RolesController < ApplicationController
def edit
@attribute = Role.find(params[:id])
@attribute_fields_upper_object = @attribute.sub_roles
render :template => 'admin/attributes/edit'
end