16
I have two models,
User
Membership
The two have the following relationship with one another
user has_many :memberships
I've been trying to figure out where the build method resides, and how do i get it in a list of methods for the instance. Here is the output of the debugger that shows my delima
(rdb:63) @user.memberships.respond_to?"build"
true
While the following is returning false, shouldnt it return true??
(rdb:63) @user.memberships.instance_methods.include?"build"
false