This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
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] |