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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56e127091b04dd4fd4c2b260ce85c5ff3ddd583c
4
- data.tar.gz: f87c77087d13960a15f8e562d1e5adf4fa6fe528
3
+ metadata.gz: 828328dfa179b5e01ea380e1294d3ce241fd2e84
4
+ data.tar.gz: 2c5964e2a76e9d6cb5ca6e0951f2acf882321796
5
5
  SHA512:
6
- metadata.gz: 7cfad8c566f31e8bbf76d5081f7eb50b1f2cd51e9e58aa7c19e3b55cad2ebd05578bd600e3513de313825e3d87bbad71e460bd02d343146649d0d4af5eac5453
7
- data.tar.gz: 7aae0c68cc3655f4acc0b845e06ef198bdbf95b309861d56261507024ec45f11a63f8d2af48d44c2d438e6bd5f24702bd846dc7a5082aa0e1bc3dae858f5cec3
6
+ metadata.gz: 8d4a25b6d6548ca7ad727e6b824298fda5387d76462cf4cad7ad35d73c0f2edac43c113b2877c3542e8ca6c49c805c6299c00e93d11709f32c3cc45fb71a3c6d
7
+ data.tar.gz: be8ae50b8b29f8e754218a1305b54bd7ba19222b45154f59901ad138b4d52568674fce421ac1c33a10c6712caffd1f214a8d468ca2c85e4396bad3e1806dc737
@@ -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 :back, :alert => "Access denied."
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 :back, :alert => "Access denied."
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 :back, :alert => "Access denied."
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 :back, :notice => "User updated."
21
+ redirect_to root_path, :notice => "User updated."
22
22
  else
23
- redirect_to :back, :alert => "Unable to update user."
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 :back, :alert => "Access denied."
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 :back, :alert => "Access denied."
17
+ redirect_to root_path, :alert => "Access denied."
18
18
  end
19
19
  rescue ActionController::RedirectBackError
20
20
  redirect_to '/', :alert => "Access denied."
@@ -8,7 +8,7 @@ class UsersController < ApplicationController
8
8
  def show
9
9
  @user = User.find(params[:id])
10
10
  unless @user == current_user
11
- redirect_to :back, :alert => "Access denied."
11
+ redirect_to root_path, :alert => "Access denied."
12
12
  end
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
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.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-03 00:00:00.000000000 Z
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.4
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.