Dim
Not a member
Dim's latest activity
Thursday, November 11 2010
5953
STI type not updatable
was updated
in Ruby on Rails
-
Dim commented at 6:29 PMNot sure, I think
becomesis already doing most of the job pretty well, but it's certainly incomplete. -
-
Dim commented at 4:31 PMSorry about the previous formatting issues, here again:
Imagine you have the following scenario:
class Employer < ActiveRecord::Base end class Manager < Emplo... -
Dim created the ticket at 4:29 PMImagine you have the following scenario:
@@@ class Employer < ActiveRecord::Base end
class Manager < Employer
endemployer = Employer.find(1) # => #
manager = e...
5954
[PATCH] ActiveRecord::Persistence#becomes does not ensure proper type
was created
in Ruby on Rails
-
Dim created the ticket at 5:09 PMHere an example:
class Employee < ActiveRecord::Base end class Manager < Employee end manager = Employee.new.becomes(Manager) manager.class # => M...
5805
[PATCH] assert_recognizes does not support constraints
was updated
in Ruby on Rails
-
- Title changed from assert_recognizes does not support constraints to [PATCH] assert_recognizes does not support constraints
Monday, November 08 2010
5805
assert_recognizes does not support constraints
was updated
in Ruby on Rails
-
-
Dim commented at 1:37 PMApologies, please ignore the last post. Here's an even better patch (not sure if it's the best way to validate constraints though).
-