Hobo Fields doesn't work with the composite_primary_keys gem
Reported by Betelgeuse | March 10th, 2010 @ 08:48 AM | in Hobo 1.4
betelgeuse@pena ~/hobo/hobo-loop $ ./script/console
Loading development environment (Rails 2.3.5)
>> class Model1 < ActiveRecord::Base
>> set_table_name 'models'
>> set_primary_keys :created_at, :updated_at
>> end
=> Model1(id: integer, created_at: datetime, updated_at: datetime)
>> Model1.primary_key
=> [:created_at, :updated_at]
>> class Model2 < ActiveRecord::Base
>> set_table_name 'models'
>> fields do; timestamps; end
>> set_primary_keys :created_at, :updated_at
>> end
=> Model2(id: integer, created_at: datetime, updated_at: datetime)
>> Model2.primary_key
=> "id"
>> Model
=> Model(id: integer, created_at: datetime, updated_at: datetime)
composite_primary_keys and hobofields are both useful so it would be great if hobofields didn't break composite_primary_keys
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 09:54 PM
- State changed from new to open
- Milestone set to Hobo 1.4
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป