abiltiy themengruppe

This commit is contained in:
Andreas Stephanides
2015-05-13 11:20:54 +02:00
parent 53977df4c0
commit c7aec6bb9b
2 changed files with 3 additions and 3 deletions

View File

@@ -124,9 +124,7 @@ class ThemengruppenController < ApplicationController
format.json { render json: @themengruppe.errors, status: :unprocessable_entity } format.json { render json: @themengruppe.errors, status: :unprocessable_entity }
end end
end end
end end # DELETE /themengruppen/1
# DELETE /themengruppen/1
# DELETE /themengruppen/1.json # DELETE /themengruppen/1.json
def destroy def destroy
@themengruppe = Themengruppe.find(params[:id]) @themengruppe = Themengruppe.find(params[:id])

View File

@@ -10,6 +10,8 @@
class Themengruppe < ActiveRecord::Base class Themengruppe < ActiveRecord::Base
WORD_COUNT = 50 WORD_COUNT = 50
resourcify
attr_accessible :text, :title, :picture, :priority, :public, :icon attr_accessible :text, :title, :picture, :priority, :public, :icon
has_many :themen, class_name: 'Thema' has_many :themen, class_name: 'Thema'
has_many :fragen, through: :themen has_many :fragen, through: :themen