Skip to content

Instantly share code, notes, and snippets.

@jiripospisil
Created January 3, 2013 18:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jiripospisil/4445870 to your computer and use it in GitHub Desktop.
# Rails 3.2.9 & 3.2.10
irb(main):001:0> Notification::Builder
=> ActiveRecord::Associations::Builder
irb(main):002:0> 'Notification::Builder'.constantize
=> Notification::Builder
irb(main):003:0> Notification::Builder
=> Notification::Builder
# Rails 4.0.0.beta (cb2b4)
irb(main):001:0> Notification::Builder
=> ActiveRecord::Associations::Builder
irb(main):002:0> 'Notification::Builder'.constantize
=> ActiveRecord::Associations::Builder # !!!
irb(main):003:0> Notification::Builder
=> ActiveRecord::Associations::Builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment