rails_apps_pages 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/lib/generators/pages/roles/templates/devise/users_controller.rb +2 -2
- data/lib/generators/pages/roles/templates/omniauth/users_controller.rb +4 -4
- data/lib/generators/pages/upmin/templates/upmin.rb +1 -1
- data/lib/generators/pages/users/templates/devise/users_controller.rb +1 -1
- data/lib/rails_apps_pages/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828328dfa179b5e01ea380e1294d3ce241fd2e84
|
4
|
+
data.tar.gz: 2c5964e2a76e9d6cb5ca6e0951f2acf882321796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d4a25b6d6548ca7ad727e6b824298fda5387d76462cf4cad7ad35d73c0f2edac43c113b2877c3542e8ca6c49c805c6299c00e93d11709f32c3cc45fb71a3c6d
|
7
|
+
data.tar.gz: be8ae50b8b29f8e754218a1305b54bd7ba19222b45154f59901ad138b4d52568674fce421ac1c33a10c6712caffd1f214a8d468ca2c85e4396bad3e1806dc737
|
data/CHANGELOG.textile
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
h1. CHANGELOG
|
2
2
|
|
3
|
+
h4. 0.6.7 October 16, 2016
|
4
|
+
|
5
|
+
* change redirects from ':back' to 'root_path'
|
6
|
+
|
3
7
|
h4. 0.6.6 October 3, 2016
|
4
8
|
|
5
9
|
* move Devise permitted parameters from initializer to application controller (fix https://github.com/RailsApps/rails-devise/issues/17)
|
@@ -10,7 +10,7 @@ class UsersController < ApplicationController
|
|
10
10
|
@user = User.find(params[:id])
|
11
11
|
unless current_user.admin?
|
12
12
|
unless @user == current_user
|
13
|
-
redirect_to
|
13
|
+
redirect_to root_path, :alert => "Access denied."
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -34,7 +34,7 @@ class UsersController < ApplicationController
|
|
34
34
|
|
35
35
|
def admin_only
|
36
36
|
unless current_user.admin?
|
37
|
-
redirect_to
|
37
|
+
redirect_to root_path, :alert => "Access denied."
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -10,7 +10,7 @@ class UsersController < ApplicationController
|
|
10
10
|
@user = User.find(params[:id])
|
11
11
|
unless current_user.admin?
|
12
12
|
unless @user == current_user
|
13
|
-
redirect_to
|
13
|
+
redirect_to root_path, :alert => "Access denied."
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -18,9 +18,9 @@ class UsersController < ApplicationController
|
|
18
18
|
def update
|
19
19
|
@user = User.find(params[:id])
|
20
20
|
if @user.update_attributes(secure_params)
|
21
|
-
redirect_to
|
21
|
+
redirect_to root_path, :notice => "User updated."
|
22
22
|
else
|
23
|
-
redirect_to
|
23
|
+
redirect_to root_path, :alert => "Unable to update user."
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -34,7 +34,7 @@ class UsersController < ApplicationController
|
|
34
34
|
|
35
35
|
def admin_only
|
36
36
|
unless current_user.admin?
|
37
|
-
redirect_to
|
37
|
+
redirect_to root_path, :alert => "Access denied."
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -14,7 +14,7 @@ module AdminOnly
|
|
14
14
|
|
15
15
|
def admin_only
|
16
16
|
unless current_user.admin?
|
17
|
-
redirect_to
|
17
|
+
redirect_to root_path, :alert => "Access denied."
|
18
18
|
end
|
19
19
|
rescue ActionController::RedirectBackError
|
20
20
|
redirect_to '/', :alert => "Access denied."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.6.
|
222
|
+
rubygems_version: 2.6.7
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Add pages to a Rails application, including controllers, views, and routing.
|