Skip to content

Conversation

@suddani
Copy link

@suddani suddani commented Jun 7, 2018

When having an inherited ActiveRecord model it runs into a stack trace to deep when calling 'first'. Using prepend instead of alias_method solves the problem.

suddani added 3 commits June 7, 2018 10:14
…w on inherited ActiveRecord models when their parents are cached_enumerations
Copy link

@tsrivishnu tsrivishnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general but I'm wondering how to directly access the methods *_without_cache_enumeration.

For example, in previous version, #first_without_cache_enumeration can be called but now it will throw method_missing error, correct? Or, am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants