Guest User

Untitled

a guest
Apr 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. module ActiveRecord
  2. module Associations
  3. module ClassMethods
  4. def has_many_with_before_account(association_id, options = {}, &extension)
  5. has_many_without_before_add(association_id, options) extension
  6. end
  7. alias_method :has_many_without_before_add, :has_many
  8. alias_method :has_many, :has_many_with_before_account
  9. end
  10. end
  11. end
Add Comment
Please, Sign In to add comment