Class: Admix::BoardRepliesController

Inherits:
InheritedController
  • Object
show all
Defined in:
app/controllers/admix/board_replies_controller.rb

Instance Method Summary collapse

Instance Method Details

#message_repliedObject



7
8
9
10
11
# File 'app/controllers/admix/board_replies_controller.rb', line 7

def message_replied
  if resource.errors.empty?
      MessageBoardMailer.message_replied(parent).deliver
  end
end

#reportObject



13
14
15
16
17
18
19
# File 'app/controllers/admix/board_replies_controller.rb', line 13

def report
  datagrid = @datagrid_class.new(params[:guess_datagrid_params])
  datagrid.scope do
    parent.board_replies
  end
  datagrid
end