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

Update documentation to use Rails.application instead #14718

Conversation

marcelmorgan
Copy link
Contributor

References to AppName::Application removed in favour of Rails.application as generated with a new rails 4.1 app.

@robin850 robin850 added the docs label Apr 12, 2014
@robin850
Copy link
Member

Hello @mcmorgan,

Thanks for your contribution. There are other places to update as well which are:

  • source/i18n.md L312
  • source/rails_on_rack.md L30 (the whole paragraph should be rephrased here I guess)
  • source/rails_on_rack.md L144
  • source/rails_on_rack.md L204
  • source/routing.md L714
  • source/routing.md L723
  • code/getting_started/Rakefile L6
  • code/getting_started/config.ru L4
  • code/getting_started/config/environment.rb L5

To find these lines I simply rely on the grep command for your information. Could you please update your PR with these changes ? Also please add [ci skip] to your commit message to avoid Travis from running a build. Thanks! :-)

@marcelmorgan
Copy link
Contributor Author

@robin850 Sure, I will update the other locations and use [ci skip] in the future for documentation changes.

@marcelmorgan
Copy link
Contributor Author

@robin850 The rest of the references to MyApp::Application have now been changed.

@arthurnn
Copy link
Member

👍 good job @mcmorgan and @robin850,. I will let it for you to merge as you are in the middle of it already 😺

Myapp::Application.config.secret_token = 'existing secret token'
Myapp::Application.config.secret_key_base = 'new secret key base'
Rails.application.config.secret_token = 'existing secret token'
Rails.application.config.secret_key_base = 'new secret key base'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that we should update this since it is about Rails 4.0 and Rails.application is favored only since 4.1. Could you please remove this change ?

@marcelmorgan
Copy link
Contributor Author

@arthurnn Thank you for this. I was a bit overzealous in my replacements, great catch. I have reverted those unnecessary changes.

References to ``AppName::Application` removed in favour of ``Rails.application``
as generated with a new rails 4.1 app.

[ci skip]
spastorino added a commit that referenced this pull request Apr 13, 2014
…-generated-config

Update documentation to use Rails.application instead
@spastorino spastorino merged commit 8b3ff37 into rails:master Apr 13, 2014
@robin850
Copy link
Member

@mcmorgan @arthurnn @spastorino : Thanks guys! ❤️

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

Successfully merging this pull request may close these issues.

None yet

4 participants