Too much magic for Ken

February 22, 2013 Callum Stott

Helps

Lobot needs YOU

The Lobot project is recruiting team members. Mostly that means that when scheduling permits, you’ll work on Lobot as a project. Contact Ken (the new PM), or Davis.

How do RubyMine inspections work?

I have a module that creates methods dynamically, but I want Command-B to work for those methods.

Interestings

before_save on: :create fails silently

before_save and after_save will happily take an on: :create option, and then completely ignore it. before_validation takes an on: :create option, and actually works, which is why it feels natural to put on: :create after a before or after save.

The right answer, apparently, is to use before_create or after_create.

See also: http://grokbase.com/t/gg/rubyonrails-core/12bda67vx2/rails-core-suggestion-%60before-save-on-create%60-should-either-work-or-raise-an-exception

Resque worker shutting down on Heroku – solved

We recently added the resque-pool gem which does alias_method on the resque worker shutdown? method to look at the pid of the process being shutdown. On Heroku this always evaluates to true.
Takeaway message don’t add resque-pool gem to your gemfile for an heroku application.

hackernewsletter.com

Weekly email of curated links from hacker news. Recommended by Rajan.

Thoughtbot is writing a book

Ruby Science: https://learn.thoughtbot.com/products/13-ruby-science

About the Author

Biography

Previous
Building identical gems
Building identical gems

We ran into a problem where we were running `gem build` on identical input files and the built gems had dif...

Next
See You at MWC 2013!

Mobile World Congress 2013 is exploring the new mobile horizon at Fira Gran Via in Barcelona from February ...