This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am georg on github. | |
* I am georg (https://keybase.io/georg) on keybase. | |
* I have a public key whose fingerprint is 29DF 77A3 832D 390D 2265 8E93 FAE4 334A CF5D 93F5 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IT'S SHOWTIME | |
HEY CHRISTMAS TREE isLessThan100 | |
YOU SET US UP @NO PROBLEMO | |
HEY CHRISTMAS TREE n | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE multiple | |
YOU SET US UP @NO PROBLEMO | |
STICK AROUND isLessThan100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following code lets you define a custom field_error_proc for a template. | |
# This can be useful for custom form builders when you don't want the default | |
# field_error_proc behaviour. | |
# | |
# class CustomFormBuilder < ActionView::Helpers::FormBuilder | |
# def initialize(object_name, object, template, options, proc) | |
# super | |
# @template.custom_field_error_proc = method(:field_error_proc) | |
# end | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this in features/env/mailtrap.rb to automatically run mailtrap for your Cucumber tests. | |
class Mailtrap | |
def self.start | |
@mailtrap_file = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'tmp', 'mailtrap.log')) | |
clear_mailtrap_file | |
@mailtrap = IO.popen("mailtrap run --file=#{@mailtrap_file}") | |
end | |
def self.clear_mailtrap_file |