app/controllers/manage/messages_controller.rb in hackathon_manager-0.10.0 vs app/controllers/manage/messages_controller.rb in hackathon_manager-0.10.1
- old
+ new
@@ -1,11 +1,12 @@
class Manage::MessagesController < Manage::ApplicationController
before_action :set_message, only: [:show, :edit, :update, :destroy, :deliver, :preview, :duplicate]
before_action :check_message_access, only: [:edit, :update, :destroy]
- respond_to :html
+ respond_to :html, :json
def index
+ respond_with(:manage, Message.all)
end
def datatable
render json: BulkMessageDatatable.new(view_context)
end