tmdb_party
tmdb_party copied to clipboard
exception raised on require: 'blank?' undefined
I keep getting an exception when I first require tmdb_party
:
NoMethodError: undefined method `blank?' for :id:Symbol
from /Users/ningj/.rvm/gems/ruby-1.9.2-p0@moty/gems/tmdb_party-0.9.0/lib/tmdb_party/extras/attributes.rb:18:in `block in attributes'
I thought maybe requiring active_support would do the trick, and it does. Is active_support a runtime dependency?
it's kinda funny. This came up in one of my other gems giant_bomb
when I was working on updating it recently.
I'm not sure how .blank? got added to these without explicitly creating the extension. I suppose I've always used these in a rails app where .blank? exists? But that doesn't seem right either, because I've used them alone in scripts as well.
I don't know whats going. Maybe its because 1.9.x is more critical about these things and it was gotten away with in 1.8.x? And now that we're all using 1.9 its complaining?
Weird. No idea why it would work without complaining about blank?
.
Hopefully https://github.com/jduff/tmdb_party/pull/10 will resolve the problem :)