Module: ActiveModel::Serializers::Msgpack
- Included in:
- ActiveRecord::Serialization
- Defined in:
- lib/msgpack_rails/3/msgpack_serializer.rb
Instance Method Summary collapse
Instance Method Details
#to_msgpack(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/msgpack_rails/3/msgpack_serializer.rb', line 4 def to_msgpack( = {}) = {:out => } if .is_a?(String) [:out] ||= '' [:out] << serializable_hash().to_msgpack end |