app/models/notify_user/houston.rb in notify_user-0.1.1 vs app/models/notify_user/houston.rb in notify_user-0.1.2
- old
+ new
@@ -19,10 +19,10 @@
@push_options = setup_options
device_method = @options[:device_method] || :devices
begin
- @devices = @notification.target.send(device_method)
+ @devices = @notification.target.send(device_method).to_a
rescue
Rails.logger.info "Notification target, #{@notification.target.class}, does not respond to the method, #{device_method}."
end
end
\ No newline at end of file