My mind is blown right now. I have a rails project, I bundle install. It says everything is installed. When I run rake (with or without bundle exec) it keeps complaining about missing gems, unless I manually install them (l18n, rack, tilt, etc). I'm using chruby, any ideas?
I'll gist it in a sec. I just blew away my .rubies and .gems folders and am reinstalling
IS there any way to, say delete contents of a directory when a process exits? I realize I can rescue SystemExit or Interrupt but I would have to scope the whole program in that, no?
Ox0dea: It is for this: https://github.com/prometheus/client_ruby/issues/9 I'm actually OK with the performance of the PStore method in my simple tests.. the people with commit bits have reservations?
Anyone know if there is a way to share variables between workers in unicorn?
Radar: Well, the problem I'm currently hitting is that I'm using lograge which logs all the rails logs as json. Stacktraces don't end up as json and end up shipping to loggly taking up like 10 entries for one trace. It seems like if you have a dedicated exception checker (like abrake) there would be no need for the exceptions in the logs
Sharcho: yeah, looking into it. Trying to see if it has some way to just log to stdout instead of shipping to logstache
Hi there. I have a question about class inheritance. How do i handle the case where I have a class "class Foo < Bar; def whatever end end" and in another file I want to make a class namespaced inside of that like: "class Foo; class Baz; end; end"
ruby seems to take issue since the class is defined with inheritance one place and not the ohter
tmoore: that does seem to work. Is there another solution? These files get autoloaded (padrino app)
I am familiar with polymorphic relationships... The relationship between Cars/Computers and Jobs is polymorphic.. but a Customer has_many Computers and Cars. The problem is you can't define two relationships on the :through
yeah, i thought about using a method. Or i suppose I could just convert Computers and Cars to be polymorphically assosciated to a Customer