A sample application I was looking at has this in environment.rb
:
config.gem 'rails'
Is this redundant code or is there likely to be a reason the programmer did this?
A sample application I was looking at has this in environment.rb
:
config.gem 'rails'
Is this redundant code or is there likely to be a reason the programmer did this?
I guess you could use that if you had multiple versions of the Rails gem, and didn't freeze Rails into your application, so you could do something like
config.gem 'rails', :version => 2.2.2
But otherwise, it's redundant.