Closed tricknotes closed 9 years ago
I have the following work around:
# Gemfile
gem 'draper', require: false
# config/application.rb
require 'draper'
Draper::Railtie.initializers.delete_if {|initializer| initializer.name == 'draper.setup_active_model_serializers' }
It works as my expectation. (But some draper's feature is probably dropped.)
It seems AMS 0.9.1 is yanked https://github.com/rails-api/active_model_serializers/commit/97c9c5084a1531e086848e4d75fc90145fba9b83 . Current latest stable version 0.9.2 works fine.
But 0-9-stable branch doesn't work due to undefined constant ActiveModel::ArraySerializerSupport
.
So I update title of this PR.
@tricknotes Are you saying Draper is working for you with 9.2 version of AMS? Because I am getting this same error with 9.2
Me too :+1: (and AMS 9.3)
Last working version is 0.9.0
Receiving the same error.
@KurtRMueller on version 0.9.0
you still have error?
Hey @savroff, after reverting back to 0.9.0, I no longer receive the error.
I have addressed this in #596, which I'm going to rebase atop the latest master and hopefully we can get it merged.
Hi there. Any news on this one? Thanks.
Same error on 0.9.3
:squirrel:
we are having this error with 0.9.3
, too. but for other colleagues that have 0.9.0
it works perfectly fine.
We have the same issue that we discovered during Rails4.2 upgrade. 0.9.3 gives this error, while 0.9.0 does not. Though 0.9.0 has another big bug https://github.com/rails-api/active_model_serializers/issues/746, which is affecting us now. Any idea when will a fix for the draper issue be released? So that we can have a version which has both these bugs fixed?
Hi @drapergem, any news on this one? Thanks.
+1
+1
+1
+1
I'll jump on board too. +1
I currently use @stevenharman's fork.
+1
+1
+1
+1
+1
+1
Pull request patch fixes the issue for me.
+1
Please try 2.0 and reopen if the problem pops up again.
:heart: thank you @jcasimir
It works fine for me. Thanks :whale:
Sweet!
This is going to be so helpful for us... I'm so glad we trusted you'd get this sorted and worked on some other items the past few weeks. Thanks for getting this all figured out so quickly.
On Thu, Mar 26, 2015 at 10:22 PM, Jeff Casimir notifications@github.com wrote:
Sweet!
— Reply to this email directly or view it on GitHub https://github.com/drapergem/draper/issues/644#issuecomment-86828967.
I caught the following error:
see: https://github.com/drapergem/draper/blob/v1.4.0/lib/draper/railtie.rb#L48
Work versions:
ActiveModel::ArraySerializerSupport
ActiveModel::ArraySerializerSupport
. But it doesn't run load hooks - so it works.Doesn't work version:
ActiveModel::ArraySerializerSupport
. And run load hooks - so it doesn't work.