Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalJumpError on Ruby 2.1.2, Rails 4.1.4 #50

Merged
merged 1 commit into from
Aug 3, 2014
Merged

Conversation

schnittchen
Copy link
Contributor

The exeption was raised here https://github.com/toy/image_optim/blob/master/lib/image_optim/railtie.rb#L9

Also did some cleaning up...

@toy
Copy link
Owner

toy commented Jul 24, 2014

Good! Though I did not understand why local jump happens. You can replace return false with return and !! can be removed.

@benben
Copy link

benben commented Jul 25, 2014

also happens with ruby 2.1.2 and rails 3.2.19

…r when breaking in railtie initializer block
@schnittchen
Copy link
Contributor Author

Maybe rails turns the block into a lambda?

Anyway, I amended my commit. Much cleaner without the false and !! noise.

toy added a commit that referenced this pull request Aug 3, 2014
Fix LocalJumpError (Ruby 2.1.2, Rails 4.1.4)
@toy toy merged commit 5d435e0 into toy:master Aug 3, 2014
@toy
Copy link
Owner

toy commented Aug 3, 2014

Thanks!

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.

None yet

3 participants