-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ActiveSupport? #33
Comments
I think this is the main or only place it's used: |
Thanks Mike. I didn't mean to imply that JAS specifically was pulling in half of Rails, just that in general if you pull one thread of it you tend to get the whole ball of mud. ;-) Actually, I think it's even better than that because you're only require'ing |
If you're interested in pursuing this further, I was able to narrow the scope even further by require'ing diff --git a/lib/jsonapi-serializers/serializer.rb b/lib/jsonapi-serializers/serializer.rb
index f7117f0..d23ad6e 100644
--- a/lib/jsonapi-serializers/serializer.rb
+++ b/lib/jsonapi-serializers/serializer.rb
@@ -1,5 +1,5 @@
require 'set'
-require 'active_support/inflector'
+require 'active_support/inflector/methods'
module JSONAPI
module Serializer |
Sounds good. :) I think this is probably fine for now. There are some other major performance things inside this gem that I want to address at some point, but those are mostly algorithmic and not dependency related. They're also working on JSON-API support over in ActiveModelSerializers if you're interested: rails-api/active_model_serializers#1235 — I've been lightly following it, looking to see where it lands when stable and see if I should just recommend that people use that instead. |
Nooooo, I love this Gem! Unless AMS adds support for Sequel ORM, that's not going to work for me. 😦 |
Hah, well that's good to know. :) |
The tests pass, but serialization fails in my app, so ignore that patch. It don't work. |
Since most of us are probably using this particular gem specifically to avoid pulling half of Rails into our non-Rails applications, what would it take to remove the dependency on ActiveSupport? Looks like it's being used primarily for inflection.
The text was updated successfully, but these errors were encountered: