Class: Pushable::ConsolesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Pushable::ConsolesController
- Defined in:
- app/controllers/pushable/consoles_controller.rb
Instance Method Summary collapse
Instance Method Details
#push ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/pushable/consoles_controller.rb', line 19 def push @push = Pushable::ConsolePush.new permitted_params if @push.valid? && @push.deliver flash[:notice] = "Push delivered (sent to #{@push.sent_count} recipient(s))." else flash[:alert] = "Push failed! #{@push.errors..to_sentence}." end show render :show end |