Rails doesn't hit the database when it generates the assoc methods, only
when you call them


On Tue, Mar 25, 2014 at 5:48 PM, tobyk100 <notifications@github.com> wrote:

> In app/models/block.rb:
>
> > @@ -0,0 +1,16 @@
> > +class Block < ActiveRecord::Base
> > +  has_and_belongs_to_many :toolboxes, join_table: :toolbox_blocks
>
> Woops, good catch. At first I implemented it with toolboxes. It's strange
> rails didn't throw any errors on this.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/code-dot-org/dashboard/pull/382/files#r10960689>
> .
>