Class: HstoreSerializer
- Inherits:
-
Object
- Object
- HstoreSerializer
- Defined in:
- lib/active_record_hstore_serializer/hstore_serializer.rb
Class Method Summary collapse
Class Method Details
.dump(text) ⇒ Object
8 9 10 |
# File 'lib/active_record_hstore_serializer/hstore_serializer.rb', line 8 def self.dump(text) text.to_hstore end |
.load(text) ⇒ Object
3 4 5 6 |
# File 'lib/active_record_hstore_serializer/hstore_serializer.rb', line 3 def self.load(text) return unless text text.from_hstore end |