Does application.rb interact with bundle update?

Does application.rb interact with bundle update?
Rubyonrails-talk,

I commented out the line

config.active_record.raise_in_transactional_callbacks = true

and did a

rails s

And got a slew or warnings, e.g.

WARNING: [Bourbon] [Deprecation] box-sizing is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.

     on line 10 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate'

     from line 17 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate-for-prefixing'

     from line 422 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `box-sizing'

     from line 13 of /home/zoom-out-001/app/assets/stylesheets/style.scss

     from line 24 of /home/zoom-out-001/app/assets/stylesheets/application.css.scss

I then ran

bundle update

reran

rails s

And the warnings went away.

Hence the question in the subject line: Does application.rb interact with bundle update?

Ralph Shnelvar

Rubyonrails-talk,

I commented out the line
   config.active_record.raise_in_transactional_callbacks = true

and did a
   rails s

And got a slew or warnings, e.g.
WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
        on line 10 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate'
        from line 17 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate-for-prefixing'
        from line 422 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `box-sizing'
        from line 13 of /home/zoom-out-001/app/assets/stylesheets/style.scss
        from line 24 of /home/zoom-out-001/app/assets/stylesheets/application.css.scss

I then ran
bundle update
reran
rails s

And the warnings went away.

Hence the question in the subject line: Does application.rb interact with bundle update?

Not as such. You are seeing the result of running bundle update without any arguments -- it seeks out updates to every gem in your application. You should actually only run bundle update with arguments unless you have specified a version or version range for every gem in your Gemfile, because you can end up with a combination of gem versions that, while they may _say_ that they are compatible, are not, and have a heck of a time getting back to a running app. Better to say bundle update autoprefixer, which will give you updates for that gem and any of its dependencies. Then run your tests again to make sure everything is still good.

Walter