Skip to content

Instantly share code, notes, and snippets.

View prpetten's full-sized avatar

Paul Pettengill prpetten

View GitHub Profile
@prpetten
prpetten / .pronto.yml
Last active January 3, 2018 14:30
CircleCI Pronto config
all:
exclude:
- 'config/**/*'
- 'vendor/**/*'
max_warnings: 150
github:
slug: repo-owner/repo-name
@prpetten
prpetten / active_record_order_hash_bug.rb
Created October 22, 2013 02:05
Using the new hash option for ActiveRecord order clause will cause a loss of context of the original table when merging the scope from another table.
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end