forked from bofh/fetsite
abiltiy themengruppe
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user