22 lines
		
	
	
		
			836 B
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			836 B
		
	
	
	
		
			Ruby
		
	
	
	
| module Asset
 | |
|   OrbitApp.registration "Asset",:type=> 'ModuleApp' do
 | |
|     module_label 'module_name.asset'
 | |
|     base_url File.expand_path File.dirname(__FILE__)    
 | |
|     
 | |
|     taggable
 | |
|     # side_bar do
 | |
|     #   head_label_i18n  'module_name.asset',:icon_class=>"icons-landscape"
 | |
|     #   available_for [:admin,:guest,:manager,:sub_manager]
 | |
|     #   active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
 | |
| 
 | |
|     #   head_link_path "admin_ad_banners_path"
 | |
| 
 | |
|     #   context_link 'module_authorization',
 | |
|     #                         :link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'AdBanner'}))",
 | |
|     #                         :priority=>6,
 | |
|     #                         :active_for_app_auth => 'ad_banners',
 | |
|     #                         :available_for => [:admin]
 | |
|     # end
 | |
|   end
 | |
| end
 |