the_role 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
class Admin::RoleSectionController < ApplicationController
|
2
2
|
before_filter :the_role_require
|
3
|
-
before_filter :the_owner_require, :only=>[:destroy, :delete_policy]
|
4
3
|
before_filter :find_role, :only=>[:destroy, :delete_policy]
|
4
|
+
before_filter :the_owner_require, :only=>[:destroy, :delete_policy]
|
5
5
|
|
6
6
|
def destroy
|
7
7
|
section_name = params[:id]
|
@@ -3,8 +3,8 @@ require 'the_role'
|
|
3
3
|
class Admin::RolesController < ApplicationController
|
4
4
|
layout 'the_role'
|
5
5
|
before_filter :the_role_require
|
6
|
-
before_filter :the_owner_require, :only => [:show, :edit, :update, :destroy, :new_role_section, :new_role_policy]
|
7
6
|
before_filter :find_role, :only => [:show, :edit, :update, :destroy, :new_role_section, :new_role_policy]
|
7
|
+
before_filter :the_owner_require, :only => [:show, :edit, :update, :destroy, :new_role_section, :new_role_policy]
|
8
8
|
|
9
9
|
def index
|
10
10
|
@roles = Role.all(:order => "created_at ASC")
|
data/lib/the_role/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_role
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-12 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
16
|
-
requirement: &
|
16
|
+
requirement: &81420680 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *81420680
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sass
|
27
|
-
requirement: &
|
27
|
+
requirement: &81420470 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *81420470
|
36
36
|
description: TheRole - simple, but powerful role system for ROR applications
|
37
37
|
email:
|
38
38
|
- zykin-ilya@ya.ru
|