2009-01-16 16:19:26 +01:00
|
|
|
class ArticleCategoriesController < ApplicationController
|
|
|
|
|
2011-05-18 16:10:30 +02:00
|
|
|
inherit_resources # Build default REST Actions via plugin
|
2009-01-16 16:19:26 +01:00
|
|
|
|
2011-05-18 16:10:30 +02:00
|
|
|
before_filter :authenticate_article_meta
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
|
|
def create
|
2011-05-18 16:10:30 +02:00
|
|
|
create!(:notice => "Die Kategorie wurde gespeichert") { article_categories_path }
|
2009-01-16 16:19:26 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def update
|
2011-05-18 16:10:30 +02:00
|
|
|
update!(:notice => "Die Kategorie wurde aktualisiert") { article_categories_path }
|
2009-01-16 16:19:26 +01:00
|
|
|
end
|
|
|
|
|
2012-11-10 16:51:30 +01:00
|
|
|
protected
|
|
|
|
|
|
|
|
def collection
|
|
|
|
@article_categories = ArticleCategory.order('name')
|
|
|
|
end
|
|
|
|
|
2009-01-16 16:19:26 +01:00
|
|
|
end
|