Skip to content

Instantly share code, notes, and snippets.

View gravis's full-sized avatar

Philippe Lafoucrière gravis

View GitHub Profile
@gravis
gravis / factory_girl_step_helpers.rb
Created September 10, 2012 08:04 — forked from danivovich/factory_girl_step_helpers.rb
Factory Girl steps for Turnip
module FactoryGirlStepHelpers
def convert_human_hash_to_attribute_hash(human_hash, associations = [])
HumanHashToAttributeHash.new(human_hash, associations).attributes
end
class HumanHashToAttributeHash
attr_reader :associations
def initialize(human_hash, associations)
@human_hash = human_hash
@gravis
gravis / Questions
Created August 9, 2011 08:23
Frozen Rails Give-away
Day job: CEO @ Tech-Angels.fr
Your Rails contributions (if any): a few bugs reporting/squashing
What's your Ruby/Rail experience?: Since 1.0, so a few years :)
How do you use GitHub?: Professionnaly to host our projects sources and configurations, personally to serve^h^h^h^h^hfork and protect^h^h^h^h^hhack
@gravis
gravis / README.txt
Created February 22, 2009 21:24 — forked from rmm5t/README.md
You can represent time statements in most western languages where
a prefix and/or suffix is used.
The default case is to use suffix only (as in English), which you
do by providing the `suffixAgo` and `suffixFromNow` settings in
the strings hash (earlier versions of timeago used the deprecated
`ago` and `fromNow` options). If present, they are used.
2 minutes [suffixAgo]
2 minutes [suffixFromNow]