Class: Notifiable::NotificationStatusesController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/notifiable/notification_statuses_controller.rb

Instance Method Summary collapse

Instance Method Details

#openedObject



5
6
7
8
9
10
11
12
# File 'app/controllers/notifiable/notification_statuses_controller.rb', line 5

def opened      
  if @notification_status.opened!
    head :status => :ok
  else
    render :json => { :errors => @notification_status.errors.full_messages }, :status => :unprocessable_entity
  end

end