My Recent Pastes (49 and counting)
Pastes by evn (49 and counting)
Pages:
Below are the 4 most recent pasties by evn.
March 26, 2007
4:43AM EDT
by evn
View all 25 lines
# dependency injection for reloadable Rails models in 15 lines module Dependencies mattr_accessor :injection_graph
July 13, 2006
2:38PM EDT
by evn
View all 33 lines
#!/usr/bin/env ruby # download and checkout all railsday2006 projects # evan weaver http://blog.evanweaver.com target = "railsday2006"
July 12, 2006
12:52AM EDT
by evn
View all 33 lines
Active record is getting confused about my polymorphic self-referential has_many :through, with a renamed non-polymorphic column. Here's the relevant parts of the join table, named changeable_things_changers: >> ChangeableThingsChanger.reflect_on_all_associations[1]
