Module: ApiResource::Associations::InheritedMethod
- Defined in:
- lib/api_resource/associations.rb
Instance Method Summary collapse
-
#inherited(descendant) ⇒ Object
define a method to reset our related objects.
Instance Method Details
#inherited(descendant) ⇒ Object
define a method to reset our related objects
62 63 64 65 66 67 68 69 70 |
# File 'lib/api_resource/associations.rb', line 62 def inherited(descendant) # we only want to do this in direct descendants of ApiResoruce::Base if self == ApiResource::Base descendant. else descendant. end super(descendant) end |