Adds Rails 3.0 compatibility

Since Rails 3.1 the internal name for "assigns" has changed. Anyway, Rails 3.0 compatibility was already broken by some dependencies for the Gem.

Since there are no tests for this kind of problem, I don't knew where to add this tests.

Please contact me if you have any concern about it.