forked from bofh/fetsite
AutoCommit Die Aug 4 22:03:01 CEST 2015
This commit is contained in:
@@ -5,15 +5,15 @@ class BeispieleController < ApplicationController
|
||||
include LikeVoteable
|
||||
acts_as_flagable
|
||||
def index
|
||||
unless params[:lva_id].nil?
|
||||
@beispiele= Lva.find(params[:lva_id]).beispiele.accessible_by(current_ability, :show)
|
||||
else
|
||||
@beispiele = Beispiel.accessible_by(current_ability, :show)
|
||||
end
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @beispiele }
|
||||
end
|
||||
# unless params[:lva_id].nil?
|
||||
# @beispiele= Lva.find(params[:lva_id]).beispiele.accessible_by(current_ability, :show)
|
||||
# else
|
||||
# @beispiele = Beispiel.accessible_by(current_ability, :show)
|
||||
# end
|
||||
# respond_to do |format|
|
||||
# format.html # index.html.erb
|
||||
# format.json { render json: @beispiele }
|
||||
# end
|
||||
end
|
||||
|
||||
# GET /beispiele/1
|
||||
|
||||
Reference in New Issue
Block a user