fetching virtual column independently from regular column
change instance variables to method calls

these instance variables are no longer available on Rails 4.  We should
use the accessor methods instead.
Merge branch 'methods' into rails4

* methods:
  change instance variables to method calls
add initial type casting fixes
use new active record api