- Overview more
-
Tickets more
- 97 New Tickets
- 1 Investigating (does not appear in totals)
- 76 No milestone assigned
- 128 Missing ticket-type
- 2 ------------------------
- 0 1.X High Priority
- 41 1.X Defects
- 20 1.X Enhancements
- 4 1.X Needs Test Case
- 1 1.X Clean-Up
- 2 1.X Testing
- 3 1.X Compatibility
- 9 1.X Doc
- 203 1.1 TOTAL
- 13 1.0 TOTAL
- 13 1.3 TOTAL
- 192 Beyond 1.0
- 1 stale
- 4 Needs Clarification
- All tickets
- Today's tickets
- Tickets I'm watching
- Assigned to me
- Reported by me
- Open tickets
- Closed tickets
- Bryan Larsen's tickets
- Domizio Demichelis's tickets
- James Garlick's tickets
- Matt Jones's tickets
- Owen's tickets
- Tom Locke's tickets
- Messages
- Milestones more
- Hobo 1.0X
- Search
undefined method `conditions' for BelongsToAssociation
Reported by Arnaud D. | March 26th, 2012 @ 11:21 AM
Hi,
In Edge hobo 1.4, I encounter this issue coming from accessible associations.rb :
undefined method conditions' for
#<ActiveRecord::Associations::BelongsToAssociation:0x124f7484>
/home/arnaud/.rvm/gems/ree-1.8.7-2012.02/bundler/gems/hobo-7002574fbd1a/hobo/lib/hobo/model/accessible_associations.rb:94:in
send'
/home/arnaud/.rvm/gems/ree-1.8.7-2012.02/bundler/gems/hobo-7002574fbd1a/hobo/lib/hobo/model/accessible_associations.rb:94:in
finder_for_belongs_to'
/home/arnaud/.rvm/gems/ree-1.8.7-2012.02/bundler/gems/hobo-7002574fbd1a/hobo/lib/hobo/model/accessible_associations.rb:131:in
wording='
activerecord (3.1.4) lib/active_record/base.rb:1751:in `send'
I think this issue comes from the fact I use :conditions on a belongs_to association.
The error comes from this line in accessible associations.rb
:
conditions =
ActiveRecord::Associations::BelongsToAssociation.new(record,
refl).send(:conditions)
should be replaced by
conditions =
ActiveRecord::Associations::BelongsToAssociation.new(record,
refl).options[:conditions]
and afterwards, this works well.
as it's done in select-one tag.
Arnaud.
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Shared Ticket Bins (Sort)
- ↓↑ drag 97 New Tickets
- ↓↑ drag 1 Investigating (does not appear in totals)
- ↓↑ drag 76 No milestone assigned
- ↓↑ drag 128 Missing ticket-type
- ↓↑ drag 2 ------------------------
- ↓↑ drag 0 1.X High Priority
- ↓↑ drag 41 1.X Defects
- ↓↑ drag 20 1.X Enhancements
- ↓↑ drag 4 1.X Needs Test Case
- ↓↑ drag 1 1.X Clean-Up
- ↓↑ drag 2 1.X Testing
- ↓↑ drag 3 1.X Compatibility
- ↓↑ drag 9 1.X Doc
- ↓↑ drag 203 1.1 TOTAL
- ↓↑ drag 13 1.0 TOTAL
- ↓↑ drag 13 1.3 TOTAL
- ↓↑ drag 192 Beyond 1.0
- ↓↑ drag 1 stale
- ↓↑ drag 4 Needs Clarification
People watching this ticket
Tags
Pages
- ↓↑ dragHome