authentasaurus 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,7 +119,7 @@ module ActionController::Authorization
119
119
  user_permissions = session[:user_permissions]
120
120
  check = user_permissions[:write].find { |perm| perm==self.controller_name || perm=="all" }
121
121
  unless check
122
- redirect_to no_access_session_path
122
+ redirect_to no_access_sessions_path
123
123
  end
124
124
  else
125
125
  login_required skip_request
@@ -135,7 +135,7 @@ module ActionController::Authorization
135
135
  user_permissions = session[:user_permissions]
136
136
  check = user_permissions[:read].find { |perm| perm==self.controller_name || perm=="all" }
137
137
  unless check
138
- redirect_to no_access_session_path
138
+ redirect_to no_access_sessions_path
139
139
  end
140
140
  else
141
141
  login_required skip_request
@@ -31,7 +31,7 @@ module ActionView::Authorization
31
31
  user_permissions = session[:user_permissions]
32
32
  check = user_permissions[:write].find { |perm| perm==self.controller_name || perm=="all" }
33
33
  unless check
34
- redirect_to no_access_session_path
34
+ redirect_to no_access_sessions_path
35
35
  end
36
36
  else
37
37
  login_required skip_request
@@ -47,7 +47,7 @@ module ActionView::Authorization
47
47
  user_permissions = session[:user_permissions]
48
48
  check = user_permissions[:read].find { |perm| perm==self.controller_name || perm=="all" }
49
49
  unless check
50
- redirect_to no_access_session_path
50
+ redirect_to no_access_sessions_path
51
51
  end
52
52
  else
53
53
  login_required skip_request
@@ -36,7 +36,7 @@ module Helpers::Routing
36
36
  def authentasaurus_sessions(*opts)
37
37
  options = opts.extract_options!
38
38
 
39
- resources :sessions, options.dup.merge({:except => [:index, :show, :edit, :update], :path_names => {:new => 'sign-in'}, :member => {:no_access => :get}})
39
+ resources :sessions, options.dup.merge({:except => [:index, :show, :edit, :update], :path_names => {:new => 'sign-in'}, :collection => {:no_access => :get}})
40
40
  end
41
41
 
42
42
  # TODO: add documentation here
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentasaurus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 11
10
- version: 0.4.11
9
+ - 12
10
+ version: 0.4.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Omar Mekky