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 ActiveAdmin : How to place filters on the top in index action
change css styles of active admin
Active admin install with Rails 4
ActiveAdmin won't save has many and belongs to many field
Truncate data in ActiveAdmin index page
Active Admin: how to set filter label dynamically
How to add an HTML-class to an ActiveAdmin index table
How to use modules to split very long code in active admin?
Downloading all records of a paginated resource in ActiveAdmin
Can you use the Form() command in ActiveAdmin in the content of a custom page?
CollectionAction route being skipped, action treated as ID
Possible to “split” an ActiveAdmin resource between multiple menu items?
Rails: activeadmin, undefined method `per' for #<ActiveRecord::Relation:0x4d15ee0>
Active Admin create form in register_page
ActiveAdmin - how to customize edit action?
ActiveAdmin - Filter with default value

Categories

HOME
rust
extjs
libgdx
ontouchlistener
angular-ui-grid
dotnetnuke
long-integer
operating-system
mousemove
dry
website
whmcs
slider
google-play-services
moodle-api
swift2
azure-data-lake
sympy
swarm
solution
csrf
sslhandshakeexception
bundler
max-msp-jitter
orange-api
vertica
el
acl
unordered-multimap
fusetools
web-config-transform
morris.js
openbravo
android-service
oracleforms
acrobat
materialize
jsonresult
phpstorm-2016.1
quick-nimble
rspec-rails
listjs
subclassing
jade4j
recovery
oauth2
flowchart
plane
type-inference
autorelease
roracle
head.js
phppgadmin
maven-jaxb2-plugin
watir-webdriver
gnome-terminal
http4s
cognos-tm1
bigdecimal
ndk-build
conan
between
node.js-connect
qpixmap
wicked-pdf
node-glob
maximize
urbit
variable-length-array
highest
supersocket.net
actionpack
sablecc
findersync
iplimage
flipboard
pbkdf2
idispatch
spark-view-engine
pcspim
gamesalad
kolite
gwt-celltable
memory-pool
microblogging
servercontrol
motodev-studio
formal-semantics
3-tier
eai
twitter-feed
remote-working
bindable-linq

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App