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 }
|
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])
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user