lib/active_remote/serialization.rb in active_remote-1.8.1 vs lib/active_remote/serialization.rb in active_remote-2.0.0.rc1
- old
+ new
@@ -1,12 +1,12 @@
require 'active_remote/serializers/json'
module ActiveRemote
module Serialization
- def self.included(klass)
- klass.class_eval do
- include ::ActiveRemote::Serializers::JSON
- end
+ extend ActiveSupport::Concern
+
+ included do
+ include Serializers::JSON
end
# Examine the given response and add any errors to our internal errors
# list. If no response is given, use the last response.
#