Paweł Kondzior
Ruby Alchemyst · Not a member
Paweł Kondzior's latest activity
Saturday, February 14 2009
692
Defining routes with symbols failes
was updated
in Ruby on Rails
Wednesday, December 17 2008
1202
Add attributes writer method for an association.
was updated
in Ruby on Rails
-
Paweł Kondzior commented at 4:05 PMThis is Model#nested_changes proposal of implementation.
changes format for one_to_one: http://pastie.org/341324
for collections there is only one difference, t...
-
Sunday, December 14 2008
1570
named_scope not preserving proper model in STI
was updated
in Ruby on Rails
-
-
-
Paweł Kondzior commented at 3:16 PMI hoped that solution will be easy, and i was right :) Active Support gives us Proc#bind that emulates 1.9 instance_exec (instance_eval with arguments)
It was a...
-
Paweł Kondzior commented at 11:29 AMYup, i figured out that. But still, problem exists. Workaround could be redefine simple_test from Employee method, but we do STI to be DRY, this is not DRY. The...
-
Paweł Kondzior commented at 3:33 AMclass Employee < User endAnd because it's bit late, i did typo in example code :(
-
Paweł Kondzior commented at 3:27 AMLoading development environment (Rails 2.3.0) >> Employee.simple_test(123) User(id: integer, created_at: datetime, updated_at: datetime, active: boolean, typ...