hzamani/acts_as_relation — Issue #11: Some methods not inheriting
Author: RichardStokes
Created: 2012-03-06 12:47:59+00:00
State: open

Having some very strange issues with regards to child classes inheriting some parent methods

Here is one of the offending methods in my parent class:

def first_reccord
self.profiled_appliances.first.first_reccord
end

here is my console readout:
x = Parent.first
y = Child.first
x.specific == y # true
x.first_record #
y.first_reccord # NoMethodError: undefined method 'first_reccord' for

I don't understand why this is happening? Other parent methods are inheriting fine.