POST /accounts
account_id
| Bitmap Heap Scan on icd_codes (cost=7.63..900.68 rows=10 width=143) | |
| Filter: ((code)::text ~~ 'A1%'::text) | |
| -> Bitmap Index Scan on index_code_on_icd_codes (cost=0.00..7.62 rows=333 width=0) | |
| Index Cond: (((code)::text ~>=~ 'A1'::text) AND ((code)::text ~<~ 'A2'::text)) |
| OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 | |
| debug1: Reading configuration data /home/runner/.ssh/config | |
| debug1: Reading configuration data /etc/ssh/ssh_config | |
| debug1: /etc/ssh/ssh_config line 19: Applying options for * | |
| debug2: ssh_connect: needpriv 0 | |
| debug1: Connecting to annkissam.beanstalkapp.com [50.31.156.72] port 22. | |
| debug1: Connection established. | |
| debug1: identity file /home/runner/.ssh/id_rsa type -1 | |
| debug1: identity file /home/runner/.ssh/id_rsa-cert type -1 | |
| debug1: identity file /home/runner/.ssh/id_dsa type -1 |
| module FmsEngine | |
| module Core | |
| class Callbacks | |
| class << self | |
| # Redis or something: | |
| CALLBACK_REGISTRY = Hash.new { |h, k| h[k] = [] } | |
| def bind(event, klass, callback_method, facade_method) | |
| CALLBACK_REGISTRY[event] << { klass: klass, callback_method: callback_method, facade_method: facade_method } | |
| end |
| class ConsumerChangesObserver < ActiveRecord::Observer | |
| observe :consumer, :address_record, :consumer_enrollment | |
| def after_update(record) | |
| ConsumerPublisher.publish_change(record) | |
| end | |
| end | |
| class SomeController < FmsController | |
| def some_action |
| require 'observer' | |
| class BudgetsConsumer | |
| def self.update(val) | |
| puts "new value from enrollment consumer: #{val}" | |
| end | |
| end | |
| class EnrollmentsConsumer | |
| extend Observable |