Skip to content

Fix SystemStackError with ActiveRecord#27

Merged
robertomiranda merged 1 commit intoheapsource:masterfrom
garethrees:stack-too-deep
May 12, 2016
Merged

Fix SystemStackError with ActiveRecord#27
robertomiranda merged 1 commit intoheapsource:masterfrom
garethrees:stack-too-deep

Conversation

@garethrees
Copy link
Contributor

@garethrees garethrees commented Oct 8, 2015

Fixes #26

If you use the default otp_counter column name, InstanceMethodsOnActivation#otp_counter calls otp_counter resulting in a stack overflow.

test/schema.rb Outdated

Choose a reason for hiding this comment

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

Use the new Ruby 1.9 hash syntax.

@garethrees garethrees force-pushed the stack-too-deep branch 2 times, most recently from a2d02ff to 79a7fed Compare October 8, 2015 13:26
@garethrees
Copy link
Contributor Author

Cleared up some Hound warnings – remaining ones are just following existing conventions.

ext/mkrf_conf.rb Outdated

Choose a reason for hiding this comment

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

Trailing whitespace detected.

If you use the default `otp_counter` column name, InstanceMethodsOnActivation#otp_counter calls `otp_counter` resulting in a stack overflow.
garethrees referenced this pull request in mysociety/alaveteli Oct 9, 2015
- Adds forked gem for temporary fix; see commit ref for details - Regenerates the secret and counter when enabled
@garethrees
Copy link
Contributor Author

Anything I can do to help get this merged? Cheers.

@robertomiranda
Copy link
Member

@garethrees sorry for the delay, I'm going to take a look today

@garethrees
Copy link
Contributor Author

@robertomiranda thanks, much appreciated! Feel free to get in touch if there's anything you need to clarify :) 🍻

@robertomiranda robertomiranda merged commit c342283 into heapsource:master May 12, 2016
mysociety-pusher pushed a commit to mysociety/alaveteli that referenced this pull request May 17, 2016
@garethrees garethrees deleted the stack-too-deep branch May 20, 2016 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants