implement Presenter::Base#declarative_policy_delegate
This commit is contained in:
		
							parent
							
								
									963b374dc7
								
							
						
					
					
						commit
						e5aad75a26
					
				|  | @ -15,6 +15,11 @@ module Gitlab | ||||||
|           super(user, action, overriden_subject || subject) |           super(user, action, overriden_subject || subject) | ||||||
|         end |         end | ||||||
| 
 | 
 | ||||||
|  |         # delegate all #can? queries to the subject | ||||||
|  |         def declarative_policy_delegate | ||||||
|  |           subject | ||||||
|  |         end | ||||||
|  | 
 | ||||||
|         class_methods do |         class_methods do | ||||||
|           def presenter? |           def presenter? | ||||||
|             true |             true | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue