tmdb_party icon indicating copy to clipboard operation
tmdb_party copied to clipboard

exception raised on require: 'blank?' undefined

Open ordinaryzelig opened this issue 13 years ago • 3 comments

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?

ordinaryzelig avatar Jan 03 '12 03:01 ordinaryzelig

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?

maddox avatar Jan 03 '12 04:01 maddox

Weird. No idea why it would work without complaining about blank?.

ordinaryzelig avatar Jan 03 '12 04:01 ordinaryzelig

Hopefully https://github.com/jduff/tmdb_party/pull/10 will resolve the problem :)

ashmckenzie avatar Mar 06 '12 22:03 ashmckenzie