Temporary open tags to allTemporary open tags to all
This commit is contained in:
		
							parent
							
								
									73a0234330
								
							
						
					
					
						commit
						218592c1f9
					
				|  | @ -6,6 +6,8 @@ class Admin::ModuleTagsController < OrbitBackendController | |||
|   # before_filter :force_order_for_user, except: [:index] | ||||
|   # before_filter :for_app_sub_manager, except: [:index] | ||||
|   # ======================================== | ||||
|   before_filter :setup_vars | ||||
|   # ======================================== | ||||
| 
 | ||||
|   helper 'admin/tags' | ||||
|     | ||||
|  |  | |||
|  | @ -1,11 +1,13 @@ | |||
| class Admin::TagsController < OrbitBackendController | ||||
|   include OrbitTag::Merging | ||||
|    | ||||
| 
 | ||||
|   # TODO = put back ======================== | ||||
|   # before_filter :force_order_for_visitor, only: [:index] | ||||
|   # before_filter :force_order_for_user, except: [:index] | ||||
|   # before_filter :for_app_sub_manager, except: [:index] | ||||
|   # ======================================== | ||||
|   before_filter :setup_vars | ||||
|   # ======================================== | ||||
|     | ||||
|   def index | ||||
|     @tags = @module_app.module_tags | ||||
|  | @ -89,4 +91,11 @@ class Admin::TagsController < OrbitBackendController | |||
|     redirect_to admin_tags_url | ||||
|   end | ||||
|    | ||||
|   protected | ||||
| 
 | ||||
|   def setup_vars | ||||
|     @app_title ||= controller_path.split('/')[1].singularize | ||||
|     @module_app ||= ModuleApp.first(conditions: {:key => @app_title} ) | ||||
|     raise ModuleAppError, 'Can not find ModuleApp' if @module_app.nil? | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue