public
Fork of caring/acts_as_url_param
Description: Pretty url support for Ruby on Rails applications
Homepage: http://www.caring.com
Clone URL: git://github.com/joshuabates/acts_as_url_param.git
Removed the reference to Caring::Scope. That belongs outside this plugin.
Chris Eppstein (author)
Tue Mar 25 07:48:23 -0700 2008
commit  d6c53692da2d7aaa70cad14ea23f8e5d5f96ded3
tree    ebd2b427b439bc423b75081f4ee3885906c8b4cb
parent  9c1d2a5bdebfae3a49a7727f126be58a7f585992
...
113
114
115
116
117
118
119
120
121
 
 
 
 
122
123
124
...
113
114
115
 
 
 
 
 
 
116
117
118
119
120
121
122
0
@@ -113,12 +113,10 @@ module ActsAsUrlParam
0
     
0
     module ClassMethods
0
       def url_param_available?(candidate, id=nil)
0
- Caring::Scope::State.instance.with_admin_scope(true) do
0
- if proc = acts_as_url_options[:block]
0
- !(proc.arity == 1 ? proc.call(candidate) : proc.call(candidate, id))
0
- else
0
- url_param_available_for_model?(candidate, id)
0
- end
0
+ if proc = acts_as_url_options[:block]
0
+ !(proc.arity == 1 ? proc.call(candidate) : proc.call(candidate, id))
0
+ else
0
+ url_param_available_for_model?(candidate, id)
0
         end
0
       end
0
       

Comments

    No one has commented yet.