Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Latest commit

 

History

History
11 lines (8 loc) · 678 Bytes

README.rdoc

File metadata and controls

11 lines (8 loc) · 678 Bytes

UNMAINTAINED This is no longer supported, just leaving here for reference for now and removing it entirely at some stage soon.

JavaLegacyRails

When porting an application from a JEE/Hibernate project to Rails, some of the inner workings are different, such as the serialization. To support the switch, I created this project to ease the transition.

Right now the provided tools and helpers are:

  • EnumCode: to be used with Enum-serialized fields. They are basically like serialized Arrays, but for some reason are split by a commata and a space “, ”. The EnumCoder reads these values and returns an array.

** Usage: serialize :legacy_data, JavaLegacyRails::EnumCoder.new