Sha256: a35825d1854608111ad12150716ee12ff377360d331fa9a7064a56a1e4a8eefa
Contents?: true
Size: 751 Bytes
Versions: 25
Compression:
Stored size: 751 Bytes
Contents
module MessageTrain class BoxesController < MessageTrain::ApplicationController before_filter :load_conversations # GET /box/:division def show @conversations = @conversations.page(params[:page]) render :show end # PATCH/PUT /box/:division def update if params[:mark_to_set].present? && @objects.present? @box.mark(params[:mark_to_set], @objects) end respond_to_marking end # DELETE /box/:division def destroy if ['ignore', 'unignore'].include? params[:mark_to_set] @box.send(params[:mark_to_set], @objects) end respond_to_marking end private def load_conversations @conversations = @box.conversations end end end
Version data entries
25 entries across 25 versions & 1 rubygems