lib/frontkit-rails/serializer.rb in frontkit-rails-0.0.3 vs lib/frontkit-rails/serializer.rb in frontkit-rails-0.0.4

- old
+ new

@@ -1,11 +1,12 @@ require 'base64' require 'multi_json' +require 'active_support/core_ext/module/delegation' module FrontKit class Serializer def encode(hash) - Base64.encode64(MultiJson.encode(hash)).strip + Base64.encode64(MultiJson.encode(hash)).gsub(/\s+/, '') end def decode(str) MultiJson.decode(Base64.decode64(str)) end \ No newline at end of file