public
Description: An authorization and workflow mechanism built on top of restful_authentication
Clone URL: git://github.com/jbarket/restful-authorization.git
Search Repo:
Fixed ridiculous naming issue. Doh.
Jonathan Barket (author)
Tue Apr 29 12:59:06 -0700 2008
commit  5a29629e196faf13f7d3dc6ffd8a9b94e85bedf9
tree    71e4e997699d1cb0725ef1a041b2ee9350731416
parent  a1c993d29421d6ea200e494a1a38a28cd94bda35
...
198
199
200
201
202
203
204
 
 
 
 
205
206
207
208
209
210
 
 
211
212
213
...
198
199
200
 
 
 
 
201
202
203
204
205
206
207
208
 
 
209
210
211
212
213
0
@@ -198,16 +198,16 @@
0
       # as well as backward.
0
       def authorization_denied
0
         store_location
0
- next_authorized_url? = self.next_authorized_url?(params)
0
- if status = next_authorized_url?[:status]
0
- if next_authorized_url?[:url]
0
- render next_authorized_url?[:url].merge(:status => status)
0
+ next_url = self.next_authorized_url?(params)
0
+ if status = next_url[:status]
0
+ if next_url[:url]
0
+ render next_url[:url].merge(:status => status)
0
           else
0
             render :nothing => true, :status => status
0
           end
0
         else
0
- if next_authorized_url?[:url]
0
- redirect_to(Symbol===next_authorized_url?[:url] ? eval(next_authorized_url?[:url].to_s) : next_authorized_url?[:url])
0
+ if next_url[:url]
0
+ redirect_to(Symbol===next_url[:url] ? eval(next_url[:url].to_s) : next_url[:url])
0
           else
0
             access_denied
0
           end

Comments

    No one has commented yet.