From c7aec6bb9b5027f96887334a8c6cbbd0549ab0d5 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Wed, 13 May 2015 11:20:54 +0200 Subject: [PATCH] abiltiy themengruppe --- app/controllers/themengruppen_controller.rb | 4 +--- app/models/themengruppe.rb | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) 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