I hereby claim:
- I am amuhle on github.
- I am amuhlethaler (https://keybase.io/amuhlethaler) on keybase.
- I have a public key ASA1n5UTyaOSodz--k1xNJ_DTDHjjcOUVH9NypPNEhBn_go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The purpose of design is to allow you to do design later, and it's primary goal is to reduce the cost of change.
| require 'minitest/autorun' | |
| class ArrayUtil | |
| attr_reader :array | |
| def initialize(array) | |
| @array = array | |
| end | |
| def super_flatten | |
| @result = [] |
| { | |
| "id": 1880, | |
| "first_name": "Jordi", | |
| "last_name": "Alba", | |
| "email": "[email protected]", | |
| "token": "BQ6A-Q353", | |
| "status": { | |
| "name": "results_ready", | |
| "label": "Results Ready" | |
| }, |
| require 'active_record' | |
| require 'mysql2' | |
| require 'minitest/autorun' | |
| require 'logger' | |
| puts "ActiveRecord: #{ActiveRecord::VERSION::STRING}" | |
| ActiveRecord::Base.establish_connection(adapter: "mysql2", host: "localhost", database: "test") | |
| ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| class Author < ActiveRecord::Base |