Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ActiveRecord
- module Associations
- module ClassMethods
- def has_many_with_before_account(association_id, options = {}, &extension)
- has_many_without_before_add(association_id, options) extension
- end
- alias_method :has_many_without_before_add, :has_many
- alias_method :has_many, :has_many_with_before_account
- end
- end
- end
Add Comment
Please, Sign In to add comment