releasing 1.1.1 which fixes behavior in Rails 3 by properly initializing ResourceAuthorization
This commit is contained in:
		
							parent
							
								
									e1652ea424
								
							
						
					
					
						commit
						232ecd5b4b
					
				@ -1,3 +1,8 @@
 | 
				
			|||||||
 | 
					1.1.1 (April 17, 2010)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Fixing behavior in Rails 3 by properly initializing ResourceAuthorization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.1.0 (April 17, 2010)
 | 
					1.1.0 (April 17, 2010)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Supporting arrays, ranges, and nested hashes in ability conditions
 | 
					* Supporting arrays, ranges, and nested hashes in ability conditions
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
Gem::Specification.new do |s|
 | 
					Gem::Specification.new do |s|
 | 
				
			||||||
  s.name        = "cancan"
 | 
					  s.name        = "cancan"
 | 
				
			||||||
  s.version     = "1.1.0"
 | 
					  s.version     = "1.1.1"
 | 
				
			||||||
  s.author      = "Ryan Bates"
 | 
					  s.author      = "Ryan Bates"
 | 
				
			||||||
  s.email       = "ryan@railscasts.com"
 | 
					  s.email       = "ryan@railscasts.com"
 | 
				
			||||||
  s.homepage    = "http://github.com/ryanb/cancan"
 | 
					  s.homepage    = "http://github.com/ryanb/cancan"
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,7 @@ module CanCan
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    def self.add_before_filter(controller_class, method, options = {})
 | 
					    def self.add_before_filter(controller_class, method, options = {})
 | 
				
			||||||
      controller_class.before_filter(options.slice(:only, :except)) do |controller|
 | 
					      controller_class.before_filter(options.slice(:only, :except)) do |controller|
 | 
				
			||||||
        new(controller, controller.params, options.except(:only, :except)).send(method)
 | 
					        ResourceAuthorization.new(controller, controller.params, options.except(:only, :except)).send(method)
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user