Problem:
Rails 5 is mentioned as a dependency in gemspec. This causes problem when graphiti-rails gem is used in projects where whole rails gem suit was not used.
example If some project is using mongoid or ActiveGraph then including graphiti-rails results in loading all of the Rails gem suit (ActiveRecord etc.) which are not needed actually.
Solution:
Since graphiti-rails is dependant on 1) actionpack 2) activesupport and 3) railties. We can safely remove rails from gemspec and add railties in gemspec. railties includes actionpack and activesupport (Ref)
Problem: Rails 5 is mentioned as a dependency in gemspec. This causes problem when
graphiti-rails
gem is used in projects where whole rails gem suit was not used.example If some project is using
mongoid
orActiveGraph
then includinggraphiti-rails
results in loading all of the Rails gem suit (ActiveRecord
etc.) which are not needed actually.Solution: Since graphiti-rails is dependant on 1)
actionpack
2)activesupport
and 3)railties
. We can safely removerails
from gemspec and addrailties
in gemspec.railties
includesactionpack
andactivesupport
(Ref)