activeadmin


rails concerns - superclass mismatch error with active_admin in gems list


Any advise would help.
We have an active_record model and a concern defined as shown below.
When we start puma server locally, everything is working fine,
But when its deployed to Elastic BeanStalk web environment (64bit Amazon Linux 2016.03 v2.1.6 running Ruby 2.3 (Puma)), We get superclass mismatch error for User
We have tried commenting class User in the concern and deploy to Elastic BeanStalk, this worked fine. But we want to keep the way its mentioned below.
app/models/user.rb
------------------
class User < ActiveRecord::Base
include User::Authenticable
end
app/models/concerns/user/authenticable.rb
------------------------------------------
class User
module Authenticable
extend ActiveSupport::Concern
end
end
Error log:
/var/app/current/app/models/user.rb:1:in `<top (required)>': superclass mismatch for class User (TypeError)
from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in r
equire'
from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_depen
dency'

Related Links

rails mountable engine I used rails 4.2.8 and try to install active admin, It's give me error like this
Is it possible to render subscript and superscript in ActiveAdmin pages?
How to make a form row's label into a selection input for a different attribute in ActiveAdmin?
How to use Money filter in active admin?
Can a rubocop check be disabled on certain paths only?
Render plain form html from ActiveAdmin instead of full page
Customize ActiveAdmin Page based on Roles
NoMethodError error for search_methods activeadmin
rails concerns - superclass mismatch error with active_admin in gems list
How to filter by “is not” in active admin/ransack
Active Admin image upload with refile
AuthorizationAdapter in ActiveAdmin
ActiveAdmin and Rails Engine. How do you keep the path name the same?
Active admin defining scope for custom page
ActiveAdmin: Can I redirect the user to the index after they create/edit something?
Active admin and Pundit

Categories

HOME
user-interface
android-studio
macos-sierra
seedstack
kendo-dropdown
postgresql-9.4
theano
ios-simulator
nsis
google-webmaster-tools
openflow
tfs2015
flurry
video-streaming
native-base
angular2-template
selection
msmq
xamarin-zebble
csrf
game-maker
responsivevoice
multi-step
google-tasks-api
tomcat8
fosuserbundle
scala-ide
xsl-fo
coroutine
android-custom-view
batch-rename
ava
perfino
tortoisehg
sales
xenapp
universal
rspec-rails
gsp
transform
grails-2.5
stackpanel
macports
eclipse-gmf
unification
git-tfs
spongycastle
gestures
line-intersection
winmerge
word-2007
glimpse
kendo-editor
email-injection
qtextedit
xcode6.4
system.web.optimization
bilinear-interpolation
dmarc
oci
qpixmap
static-methods
knife
deque
innerhtml
qt5.4
loginview
git-reset
.htpasswd
usb-flash-drive
nosql-aggregation
mod-perl
jmenubar
acitree
notifyjs
jacob
blobstorage
rikulo
dibs
web-frameworks
reentrancy
gitx
wiktionary
background-repeat
differentiation
haiku
radscheduler
nosetests
printqueue
turbine
ccl
resharper-5.1
cleartype
resharper-5.0
gtktextview

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App