Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created April 2, 2013 19:12
Show Gist options
  • Select an option

  • Save kenmazaika/5295257 to your computer and use it in GitHub Desktop.

Select an option

Save kenmazaika/5295257 to your computer and use it in GitHub Desktop.
irb(main):027:0> s = AdDistribution.reflect_on_association(:publisher_points).klass.instance_exec(&AdDistribution.reflect_on_association(:publisher_points).scope)
AdDistributionPoint Load (0.3ms) SELECT `ad_distribution_points`.* FROM `ad_distribution_points` WHERE (publisher_id IS NOT NULL)
=> #<ActiveRecord::Relation []>
irb(main):028:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment