bogdan/datagrid — pull request #12 by techfolio (2012-01-02 17:01:23+00:00)
Title: Make tests pass in 1.8.7

Hey bogdan,

thank you for the final merging of my last pull request.

I pulled your newest commits into my fork to take a look at your fresh changes.
But my tests stopped working under Ruby 1.8.7.

Problem was the force_encoding method, since it's 1.9.3 specific.

I made it conditional the same way it's made in parts of the rails source.
That seems to be a common pattern for applications that run under both rubies.

Sincerely
Jakob