diff --git a/app/controllers/themengruppen_controller.rb b/app/controllers/themengruppen_controller.rb index 0a6f0c8..5a58bc1 100644 --- a/app/controllers/themengruppen_controller.rb +++ b/app/controllers/themengruppen_controller.rb @@ -124,9 +124,7 @@ class ThemengruppenController < ApplicationController format.json { render json: @themengruppe.errors, status: :unprocessable_entity } end end - end - - # DELETE /themengruppen/1 + end # DELETE /themengruppen/1 # DELETE /themengruppen/1.json def destroy @themengruppe = Themengruppe.find(params[:id]) diff --git a/app/models/themengruppe.rb b/app/models/themengruppe.rb index 53ec90b..d37675a 100644 --- a/app/models/themengruppe.rb +++ b/app/models/themengruppe.rb @@ -10,6 +10,8 @@ class Themengruppe < ActiveRecord::Base WORD_COUNT = 50 + resourcify + attr_accessible :text, :title, :picture, :priority, :public, :icon has_many :themen, class_name: 'Thema' has_many :fragen, through: :themen