I need to do some stuff on associations which are just loaded in context of 
the base object (user in example).
I was expected to find something like after_association_loaded but it 
doesn't exist.

*Syntax proposal:*

class User < ActiveRecord::Base
  has_many :emails
  has_one :account

  after_association_loaded(:emails) do |user, email|
    # do some stuff
  end

  after_association_loaded :account, :account_hander

  def account_handler(user, account)
    # do some stuff
  endend


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/VPfCIhmzj5cJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to