fix for rails 3.2 in table/generator

this fix is for make it work with rails 3.2

the Object.try method is a bit different in rails 3.2

rails 4
https://github.com/rails/rails/blob/master/activesupport/lib/active_supp
ort/core_ext/object/try.rb

rails 3.2
https://github.com/rails/rails/blob/3-2-stable/activesupport/lib/active_
support/core_ext/object/try.rb

this will generate an exception on rails 3.2 while looking for the
klass method in @data when @data is an Array

so now i check if the @data responds to the klass method before calling
try.

It works, even if the solution is not so… klassy :D
first test experiment

with appraisal, a dummy rails application, some models and factory girl