lib/api_pack/serializer/parser.rb in api_pack-1.0.0 vs lib/api_pack/serializer/parser.rb in api_pack-1.0.1
- old
+ new
@@ -13,10 +13,10 @@
self.adapter = :fast_json_api
@adapter
end
def adapter=(adapter)
- require "./lib/api_pack/serializer/adapter/#{adapter}"
+ require_relative "./adapter/#{adapter}"
adapter_name = adapter.to_s.split('_').collect(&:capitalize).join
@adapter = Serializer::Adapter.const_get(adapter_name)
end