Skip to content
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

undefined method 'update_attributes!' for RailsAdminSettings::Setting #24

Open
gabrieletassoni opened this issue Apr 12, 2021 · 1 comment

Comments

@gabrieletassoni
Copy link

Running in the console or in a seeds.rb file a setting write results in error:

Settings.app_name = "The Core by Gabriele Tassoni"
Traceback (most recent call last):
        1: from (irb):3
NoMethodError (undefined method `update_attributes!' for #<RailsAdminSettings::Setting:0x00007f73525a1550>)
Did you mean?  update_attribute

These are the dependecies:

Using rake 13.0.3
Using concurrent-ruby 1.1.8
Using i18n 1.8.10
Using minitest 5.14.4
Using tzinfo 2.0.4
Using zeitwerk 2.4.2
Using activesupport 6.1.3.1
Using builder 3.2.4
Using erubi 1.10.0
Using mini_portile2 2.5.0
Using racc 1.5.2
Using nokogiri 1.11.3 (x86_64-linux)
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.9.1
Using rails-html-sanitizer 1.3.0
Using actionview 6.1.3.1
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 6.1.3.1
Using nio4r 2.5.7
Using websocket-extensions 0.1.5
Using websocket-driver 0.7.3
Using actioncable 6.1.3.1
Using globalid 0.4.2
Using activejob 6.1.3.1
Using activemodel 6.1.3.1
Using activerecord 6.1.3.1
Using marcel 1.0.1
Using mini_mime 1.0.3
Using activestorage 6.1.3.1
Using mail 2.7.1
Using actionmailbox 6.1.3.1
Using actionmailer 6.1.3.1
Using actiontext 6.1.3.1
Using activemodel-serializers-xml 1.0.2
Using activerecord-nulldb-adapter 0.7.0
Using smart_kv 0.2.8.1
Using apexcharts 0.1.10
Using geocoder 1.6.6
Using method_source 1.0.0
Using thor 1.1.0
Using railties 6.1.3.1
Using warden 1.2.9
Using authtrail 0.3.1
Using execjs 2.7.0
Using autoprefixer-rails 10.2.4.0
Using bcrypt 3.1.16
Using msgpack 1.4.2
Using bootsnap 1.7.3
Using ffi 1.15.0
Using sassc 2.4.0
Using bootstrap-sass 3.4.1
Using bundler 2.1.4
Using native-package-installer 1.1.1
Using pkg-config 1.4.6
Using red-colors 0.1.1
Using cairo 1.17.5
Using glib2 3.4.3
Using cairo-gobject 3.4.3
Using cancancan 3.2.1
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using coffee-rails 5.0.0
Using connection_pool 2.2.3
Using deep_merge 1.2.1
Using orm_adapter 0.5.0
Using responders 3.0.1
Using devise 4.7.3
Using devise-i18n 1.9.3
Using unf_ext 0.0.7.7
Using unf 0.1.4
Using domain_name 0.5.20190701
Using e2mmap 0.1.0
Using et-orbi 1.2.4
Using ethon 0.13.0
Using faraday-net_http 1.0.1
Using multipart-post 2.1.1
Using ruby2_keywords 0.0.4
Using faraday 1.3.0
Using raabro 1.4.0
Using fugit 1.4.4
Using gobject-introspection 3.4.3
Using gio2 3.4.3
Using groupdate 5.2.2
Using temple 0.8.2
Using tilt 2.0.10
Using haml 5.2.1
Using http-accept 1.7.0
Using http-cookie 1.0.3
Using http_accept_language 2.1.1
Using jwe 0.4.0
Using maxminddb 0.1.22
Using jwt 2.2.2
Using kaminari-core 1.2.1
Using kaminari-actionview 1.2.1
Using kaminari-activerecord 1.2.1
Using kaminari 1.2.1
Using multi_json 1.15.0
Using rack-cors 1.1.1
Using ransack 2.4.2
Using simple_command 0.1.0
Using rails-i18n 6.0.0
Using rails_admin_settings 1.6.0
Using sprockets 4.0.2
Using sprockets-rails 3.2.2
Using rails 6.1.3.1
Using thecore_auth_commons 2.3.4
Using thecore_backend_commons 2.3.3
Using model_driven_api 2.3.11
Using json 2.5.1
Using typhoeus 1.4.0
Using mux_ruby 1.9.0
Using multi_xml 0.6.0
Using oauth2 1.4.7
Using mime-types-data 3.2021.0225
Using mime-types 3.3.1
Using netrc 0.11.0
Using rest-client 2.1.0
Using jquery-ui-rails 6.0.1
Using jquery-rails 4.4.0
Using nested_form 0.3.2
Using rack-pjax 1.1.0
Using remotipart 1.4.4
Using sassc-rails 2.1.2
Using rails_admin 2.1.1
Using rails_admin-i18n 1.16.0
Using rails_admin_rollincode 1.3
Using selectize-rails 0.12.6
Using rails_admin_selectize 2.0.8
Using rails_admin_toggleable 0.8.3
Using safe_yaml 1.0.5
Using mini_magick 4.11.0
Using ruby-vips 2.1.0
Using image_processing 1.12.1
Using poppler 3.4.3
Using serviceworker-rails 0.6.0
Using redis 4.2.5
Using sidekiq 6.2.1
Using sidekiq-failures 1.0.0
Using rufus-scheduler 3.7.0
Using thwait 0.2.0
Using sidekiq-scheduler 3.0.1
Using thecore_background_jobs 2.0.7
Using thecore_ui_commons 2.3.3
Using thecore_ui_rails_admin 2.2.11
Using ies_models 0.4.13
Using jbuilder 2.11.2
Using pg 1.2.3
Using puma 4.3.7
Using rack-proxy 0.6.5
Using sass-rails 6.0.0
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using webpacker 4.3.0

And this if the ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux-musl]

Is there a compatibility issue I'm not aware of? How to continue to use this gem since it worked okey since today?

Thank you very much

@gabrieletassoni
Copy link
Author

It looks like is because of this: https://rubyinrails.com/2019/04/09/rails-6-1-activerecord-deprecates-update-attributes-methods/

update_attributes! has been deprecated in rails 6.1, so I either have to go back to rails 6.0 or try a pull request on this repository to fix the usage of update_attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant