Sha256: afe6880aa8860b42165adb4eb2d83da1f3443d7c6c5e4e7104023dd2739549f6
Contents?: true
Size: 858 Bytes
Versions: 7
Compression:
Stored size: 858 Bytes
Contents
module MessageTrain class BoxesController < MessageTrain::ApplicationController before_filter :load_conversations # GET /box/in def show @conversations = @conversations.page(params[:page]) render :show end # PATCH/PUT /box/in def update if params[:mark_to_set].present? && @objects.present? @box.mark(params[:mark_to_set], @objects) end respond_to_marking end # DELETE /box/in 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 def load_box @box = send(MessageTrain.configuration.current_user_method).box(params[:division].to_sym) end end end
Version data entries
7 entries across 7 versions & 1 rubygems