fix for showing subroles
This commit is contained in:
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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user