lib/mutils/serialization/serialization_includes.rb in mutils-0.2.35 vs lib/mutils/serialization/serialization_includes.rb in mutils-0.2.36
- old
+ new
@@ -3,16 +3,17 @@
# Module Mutils
module Mutils
module Serialization
# Module SerializationIncludes
module SerializationIncludes
- extend ActiveSupport::Concern
- included do
- class << self
- attr_accessor :serializer_name,
- :include_root,
- :relationships,
- :attributes_to_serialize
+ def self.included(base)
+ base.class_eval do
+ class << self
+ attr_accessor :serializer_name,
+ :include_root,
+ :relationships,
+ :attributes_to_serialize
+ end
end
end
end
end
end