parent
							
								
									9ae672719e
								
							
						
					
					
						commit
						1de9265879
					
				| @ -0,0 +1,5 @@ | |||||||
|  | class ProjectCategoriesController < ApplicationController | ||||||
|  |   def index | ||||||
|  |     @project_categories = ProjectCategory.search(params[:name]).without_content | ||||||
|  |   end | ||||||
|  | end | ||||||
| @ -1,5 +1,5 @@ | |||||||
| class ProjectCategory < ApplicationRecord | class ProjectCategory < ApplicationRecord | ||||||
|   include ProjectAble |   include Projectable | ||||||
|   has_ancestry |   has_ancestry | ||||||
| 
 | 
 | ||||||
| end | end | ||||||
|  | |||||||
| @ -1,3 +1,3 @@ | |||||||
| class ProjectLanguage < ApplicationRecord | class ProjectLanguage < ApplicationRecord | ||||||
|   include ProjectAble |   include Projectable | ||||||
| end | end | ||||||
|  | |||||||
| @ -0,0 +1 @@ | |||||||
|  | json.project_categories @project_categories, :id, :name | ||||||
					Loading…
					
					
				
		Reference in new issue