tag:ianwhite.lighthouseapp.com,2008-04-30:/projects/10605-nested_has_many_through/eventsianwhite / nested_has_many_through Events2008-10-07T23:45:24Ztag:ianwhite.lighthouseapp.com,2008-04-30:Event/62837432010-02-19T23:33:46+00:002010-02-19T23:33:46+00:00Emery Finkelsteinnested_has_many_through: Wrong ID for has_many :through on a belongs_to relationship [#1]<div><p>I've got a patch for this, and I'm writing a spec now. Expect a
pull request in an hour or so.</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/61372792010-02-09T11:36:47+00:002010-02-09T11:36:47+00:00Ian White[Changeset] nested_has_many_through: Changeset [c8175dcfa7ea1201ada32616c8821d8e0efafa87] by Ian White<div><p>Allow has_one and has_many options to work if they are not
options of through associations (like autosave)<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/c8175dcfa7ea1201ada32616c8821d8e0efafa87">
http://github.com/ianwhite/nested_has_many_through/commit/c8175dcfa...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55921072009-12-17T12:12:03+00:002009-12-17T12:12:03+00:00Ian White[Changeset] nested_has_many_through: Changeset [cfe4b60adba8631df60df865d28923474e2cd442] by Ian White<div><p>Add not about rails 2.3 branch<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/cfe4b60adba8631df60df865d28923474e2cd442">
http://github.com/ianwhite/nested_has_many_through/commit/cfe4b60ad...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55920972009-12-17T12:08:46+00:002009-12-17T12:08:46+00:00Ian White[Changeset] nested_has_many_through: Changeset [bfdc054dafea863ead30fe5e5a82a72c9c162dc9] by Ian White<div><p>Added note that rails-2.3 branch is mostly working<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/bfdc054dafea863ead30fe5e5a82a72c9c162dc9">
http://github.com/ianwhite/nested_has_many_through/commit/bfdc054da...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916552009-12-17T11:04:38+00:002009-12-17T11:04:38+00:00Ian White[Changeset] nested_has_many_through: Changeset [2bc1a6b4ef26007df0fd7280f12713b7c9111bd3] by Ian White<div><p>Words - warning about this branch not working<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/2bc1a6b4ef26007df0fd7280f12713b7c9111bd3">
http://github.com/ianwhite/nested_has_many_through/commit/2bc1a6b4e...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916542009-12-17T11:04:38+00:002009-12-17T11:04:38+00:00Ian White[Changeset] nested_has_many_through: Changeset [e49ad7e2b81e3f67754ff6d6c1d9f31d599645fd] by Ian White<div><p>nested_through changed structure to isolate new behaviour from
vanilla behaviour. Nested and source through associations now have
their own association classes<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/e49ad7e2b81e3f67754ff6d6c1d9f31d599645fd">
http://github.com/ianwhite/nested_has_many_through/commit/e49ad7e2b...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916532009-12-17T11:04:35+00:002009-12-17T11:04:35+00:00Ian White[Changeset] nested_has_many_through: Changeset [ceb396b82549e76bbbf0a971d910aad58e409883] by Ian White<div><p>associations_spec tests that non nested assocs use the normal AR
association classes, to isolate any strange behaviour.<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/ceb396b82549e76bbbf0a971d910aad58e409883">
http://github.com/ianwhite/nested_has_many_through/commit/ceb396b82...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916522009-12-17T11:04:35+00:002009-12-17T11:04:35+00:00Ian White[Changeset] nested_has_many_through: Changeset [e17efbe171fbf82628fa36c93d2987e73c47624a] by Ian White<div><p>Added association spec to test that the correct association
proxy class is being created<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/e17efbe171fbf82628fa36c93d2987e73c47624a">
http://github.com/ianwhite/nested_has_many_through/commit/e17efbe17...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916502009-12-17T11:04:34+00:002009-12-17T11:04:34+00:00Ian White[Changeset] nested_has_many_through: Changeset [d3fae2086bdfd2598f06cbbd75dc2a5b45228686] by Ian White<div><p>Added has_one specs for reflection<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/d3fae2086bdfd2598f06cbbd75dc2a5b45228686">
http://github.com/ianwhite/nested_has_many_through/commit/d3fae2086...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916492009-12-17T11:04:34+00:002009-12-17T11:04:34+00:00Ian White[Changeset] nested_has_many_through: Changeset [d06d910e92d26aaf8f3b98abe5ecc1a0fc3aaab0] by Ian White<div><p>Condense & re-org reflection spec<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/d06d910e92d26aaf8f3b98abe5ecc1a0fc3aaab0">
http://github.com/ianwhite/nested_has_many_through/commit/d06d910e9...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/55916482009-12-17T11:04:34+00:002009-12-17T11:04:34+00:00Ian White[Changeset] nested_has_many_through: Changeset [19454a46001d36378058d045cb528398c64da39a] by Ian White<div><p>Added specs for NestedThrough::Reflection<br>
Separated db into own file in spec setup<br>
<a href=
"http://github.com/ianwhite/nested_has_many_through/commit/19454a46001d36378058d045cb528398c64da39a">
http://github.com/ianwhite/nested_has_many_through/commit/19454a460...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/40865032009-07-30T18:29:12+01:002009-07-30T18:29:13+01:00Matt Scilipotinested_has_many_through: Breaks has_one :through [#2]<div><p>It looks like janmejay answered it in Sept. 2008: <a href=
"http://github.com/janmejay/nested_has_many_through/tree/master">http://github.com/janmejay/nested_has_many_through/tree/master</a>.<br></p>
<p>Since JackDanger forked janmejay AND has commits for rails 2.3,
I changed my plugin to use his:
git://github.com/JackDanger/nested_has_many_through.git. This one
is working fine for me.</p>
<p>Hope this helps.</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/35117422009-06-01T08:04:55+01:002009-06-01T08:04:55+01:00Ian White[Changeset] nested_has_many_through: Changeset [7cce08791270a8e2601a29bc07bb2b130fd127ee] by Ian White<div><p>Added 2.3 stable to CI build <a href="http://github.com/ianwhite/nested_has_many_through/commit/7cce08791270a8e2601a29bc07bb2b130fd127ee">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/35117412009-06-01T08:04:55+01:002009-06-01T08:04:55+01:00Ian White[Changeset] nested_has_many_through: Changeset [1f5dfd59a6c79557208c67647f0d9d1b65bb3da3] by Ian White<div><p>TODO tasks <a href="http://github.com/ianwhite/nested_has_many_through/commit/1f5dfd59a6c79557208c67647f0d9d1b65bb3da3">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/35117402009-06-01T08:04:55+01:002009-06-01T08:04:55+01:00Ian White[Changeset] nested_has_many_through: Changeset [2705625609f7d60d85ff8d6a86e56d2081685350] by Ian White<div><p>Removing 2.0 from CI build - see README <a href="http://github.com/ianwhite/nested_has_many_through/commit/2705625609f7d60d85ff8d6a86e56d2081685350">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/35117392009-06-01T08:04:55+01:002009-06-01T08:04:55+01:00Ian White[Changeset] nested_has_many_through: Changeset [81add465f40d9ab403807f3058c7d228b3137d22] by Ian White<div><p>Use AR::Base.type_condition to construct conditions <a href="http://github.com/ianwhite/nested_has_many_through/commit/81add465f40d9ab403807f3058c7d228b3137d22">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/31319492009-04-20T18:29:33+01:002009-04-20T18:29:33+01:00jopottsnested_has_many_through: Breaks has_one :through [#2]<div><p>I've just run into the same problem as Jeremy.</p>
<p>Has anyone looked into this yet?</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/23657782009-02-04T16:35:40+00:002009-02-04T16:35:40+00:00Ian Whitenested_has_many_through: Breaks has_one :through [#2]<li>State changed from <em class="change">“new”</em> to <em class="change">“open”</em></li>
<div><p>That sounds bad! thanks for the report, what rails version
etc?</p>
<p>Any chance of forking and adding a failing spec, to get things
going?</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/23603392009-02-04T01:54:40+00:002009-02-04T01:54:40+00:00Jeremy Huffmannested_has_many_through: Breaks has_one :through [#2]<div><p>last try...</p>
<p>has_many :tasks, :through => :projects</p>
<p>has_one :primary_task, :through => :projects, :source =>
:tasks, :conditions => 'tasks.primary = true'</p>
<p>has_many :task_items, :through => :tasks</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/23603272009-02-04T01:53:47+00:002009-02-04T01:53:47+00:00Jeremy Huffmannested_has_many_through: Breaks has_one :through [#2]<div><p>retry formatting failure...</p>
<blockquote>
<p>has_many :tasks, :through => :projects has_one :primary_task,
:through => :projects, :source => :tasks, :conditions =>
'tasks.primary = true' has_many :task_items, :through =>
:tasks</p>
</blockquote></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/23602972009-02-04T01:50:48+00:002009-02-04T01:50:48+00:00Jeremy Huffmannested_has_many_through: Breaks has_one :through [#2]<div><p>I have some code like this. Your most excellent plug-in makes
the third line possible, but then introduces an error in the 2nd
line which works fine without the plug-in. The error looks like
what you see in the 3rd line without the plug-in (unknown
column...)</p>
<p>I changed the domain terms to make this more familiar, hopefully
you can see what I mean from this.</p>
<p>@@@ruby has_many :tasks, :through => :projects has_one
:primary_task, :through => :projects, :source => :tasks,
:conditions => 'tasks.primary = true' has_many :task_items,
:through => :tasks</p>
<pre><code>
</code></pre></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/18082922008-11-25T06:55:31+00:002008-11-25T06:55:31+00:00Ian White[Changeset] nested_has_many_through: Changeset [45500a3d4e9b7f2d60eba3ee20992a2863d829cd] by Ian White<div><p>Fixing some typos for cruise/doc/garlic <a href="http://github.com/ianwhite/nested_has_many_through/commit/45500a3d4e9b7f2d60eba3ee20992a2863d829cd">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/18081592008-11-25T06:12:28+00:002008-11-25T06:12:28+00:00Ian White[Changeset] nested_has_many_through: Changeset [c6de6142c646351c441995806baef5c40331aaac] by Ian White<div><p>Fixed doc part of cruise task <a href="http://github.com/ianwhite/nested_has_many_through/commit/c6de6142c646351c441995806baef5c40331aaac">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/18081562008-11-25T06:10:00+00:002008-11-25T06:10:00+00:00Ian White[Changeset] nested_has_many_through: Changeset [6e5f94e7e6acf92174410502d42fbf6543ba35de] by Ian White<div><p>Updated garlic.rb to 0.1.5 API (no all_targets) <a href="http://github.com/ianwhite/nested_has_many_through/commit/6e5f94e7e6acf92174410502d42fbf6543ba35de">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/18078232008-11-25T04:20:22+00:002008-11-25T04:20:22+00:00Ian White[Changeset] nested_has_many_through: Changeset [cc0710f4a7736e49c4acd4e317245c33e75e4ac5] by Ian White<div><p>Updated to use new garlic gem style for CI <a href="http://github.com/ianwhite/nested_has_many_through/commit/cc0710f4a7736e49c4acd4e317245c33e75e4ac5">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/15845522008-10-27T10:57:08+00:002008-10-27T10:59:17+00:00Ian Whitenested_has_many_through: Wrong ID for has_many :through on a belongs_to relationship [#1]<div><p>nested_has_many_through hasn't yet been tested on belongs_to
(it's target has always been through has_many), so thanks for the
bug report.</p>
<p>I'm currently very busy, but will get around to this. In the
meantime, a spec highlighting the problem, or even better, a speced
patch fixing the problem, would be very welcome.</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/15828162008-10-27T00:16:27+00:002008-10-27T00:16:27+00:00Jonathannested_has_many_through: Wrong ID for has_many :through on a belongs_to relationship [#1]<div><p>class Group < ActiveRecord::Base belongs_to :network has_many
:users, :through => :network end</p>
<p>Group.first.users will form this SQL Query</p>
<p>..... WHERE ( networks.id = 1 )</p>
<p>In which 1 is the id of the GROUP, not the NETWORK! Big
problem.</p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/14491652008-10-08T00:45:24+01:002008-10-08T00:45:24+01:00Ian White[Changeset] nested_has_many_through: Changeset [1c3f1e8528ac898a3a0dda3a1d9218d1dd67ef65] by Ian White<div><p>Added masterkain to contributors list <a href="http://github.com/ianwhite/nested_has_many_through/commit/1c3f1e8528ac898a3a0dda3a1d9218d1dd67ef65">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/14491642008-10-08T00:45:24+01:002008-10-08T00:45:24+01:00Ian White[Changeset] nested_has_many_through: Changeset [80c43d8cfb18c730b9985347a3abfe60bcb9b51e] by Ian White<div><p>Added branching BC code for AssociationReflection for 2.1-stable
support <a href="http://github.com/ianwhite/nested_has_many_through/commit/80c43d8cfb18c730b9985347a3abfe60bcb9b51e">
http://github.com/ianwhite/neste...</a></p></div>tag:ianwhite.lighthouseapp.com,2008-04-30:Event/14491632008-10-08T00:45:24+01:002008-10-08T00:45:24+01:00Ian White[Changeset] nested_has_many_through: Changeset [f1da64b7ff13d2f5ecaf49181f8c1945ece67b97] by Ian White<div><p>Edge internals have changed - replacing AssociationReflection
with ThroughReflection [masterkain] <a href="http://github.com/ianwhite/nested_has_many_through/commit/f1da64b7ff13d2f5ecaf49181f8c1945ece67b97">
http://github.com/ianwhite/neste...</a></p></div>