Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Parent < ActiveRecord::Base
- has_many :children, :dependent => :destroy do
- def alive
- find_with_status("alive")
- end
- end
- end
- Person.children.alive # NoMethodError: undefined method `alive' for #<Class:0x101ff4630>
Add Comment
Please, Sign In to add comment