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

Removing use of subclassed application constant and replacing with Rails.application #10832

Merged

Conversation

wangjohn
Copy link
Contributor

@wangjohn wangjohn commented Jun 4, 2013

The use of Rails.application instead of calling the application constant is a more agnostic syntax. This means tests will be more portable, and won't rely on the existence of a particular subclass. I've changed a bunch of places to use the Rails.application syntax.

By not calling the AppTemplate::Application constant, in the future it will be easier to have multiple applications or have applications be given by a particular instance of an Application instead of a subclass.

more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass.
josevalim pushed a commit that referenced this pull request Jun 4, 2013
…onstant

Removing use of subclassed application constant and replacing with Rails.application
@josevalim josevalim merged commit 4b2cb4a into rails:master Jun 4, 2013
@wangjohn wangjohn deleted the removing_use_of_application_constant branch June 4, 2013 06:52
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

Successfully merging this pull request may close these issues.

None yet

2 participants