I hereby claim:
- I am chumpy on github.
- I am kbeddingfield (https://keybase.io/kbeddingfield) on keybase.
- I have a public key whose fingerprint is 7AEA FDC5 7533 D5F7 639C 1F65 64FA FEFC 60A9 7D1A
To claim this, I am signing this object:
| # frozen_string_literal: true | |
| class CustomFormatter | |
| RSpec::Core::Formatters.register self, :example_failed | |
| def initialize(output) | |
| @output = output | |
| end | |
| def example_failed(notification) |
| setlocal expandtab shiftwidth=2 tabstop=2 | |
| set number | |
| set nocompatible | |
| syntax enable | |
| filetype plugin on | |
| " FINDING FILES: | |
| " search down into subfolders |
| require 'rails_helper' | |
| describe StoreFront do | |
| describe '#shows_meal_label_line?' do | |
| let(:dc_geo) { FactoryGirl.build(:store_front, name: "DC") } | |
| let(:other_geo) { FactoryGirl.build(:store_front) } | |
| it 'true when multiple lines (aka DC)' do | |
| dc_geo.lines << FactoryGirl.create(:line, name: "Paleo") | |
| dc_geo.lines << FactoryGirl.create(:line, name: "Mix") |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # cleanup vim configs and start again with an empty install | |
| cd | |
| mv .vimrc .vimrc-old | |
| mv .vim .vim-old | |
| touch .vimrc | |
| mkdir .vim |
| <% @approval_states.each do |step| %> | |
| <li><%= link_to step.state, garden_meal_path(@garden_meal, garden_meal: { id: @garden_meal.id}, approval_state: step.state), method: :put %></li> | |
| <% end %> |
All packages in this directory will be automatically loaded
| ####################### | |
| # The following code goes in the distinction model | |
| ####################### | |
| # This is the hard-coding alternative to putting these values in the db | |
| DISTINCTION_AREAS = {'01' => '[email protected]', '02' => '[email protected]'} | |
| def area_email | |
| DISTINCTION_AREAS[self.area] | |
| end |
Accessing model instance inside config block:
field :email do
formatted_value do
bindings[:object].user.email
end
end