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

Handle Legacy Rails' lack of acronym support #143

Closed
wants to merge 1 commit into from
Closed

Handle Legacy Rails' lack of acronym support #143

wants to merge 1 commit into from

Conversation

seanpdoyle
Copy link
Contributor

Handles load_missing_constant failures

/Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:490:in `load_missing_constant': Expected /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/ember-cli-rails-0.2.2/app/helpers/ember_cli_rails_helper.rb to define EmberCliRailsHelper (LoadError)
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:181:in `block in const_missing'
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:179:in `each'
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:179:in `const_missing'

Handles `load_missing_constant` failures

```
/Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:490:in `load_missing_constant': Expected /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/ember-cli-rails-0.2.2/app/helpers/ember_cli_rails_helper.rb to define EmberCliRailsHelper (LoadError)
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:181:in `block in const_missing'
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:179:in `each'
        from /Users/Sean/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:179:in `const_missing'
```
@seanpdoyle
Copy link
Contributor Author

@rwz master (and 0.2.x) no longer supports rails 3.1

@@ -98,3 +98,5 @@ def append_middleware
Rails.configuration.middleware.use Middleware
end
end

EmberCli = EmberCLI
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this might not be necessary, but we might as well cover it

@rwz
Copy link
Collaborator

rwz commented Apr 6, 2015

I see. Let's just rename EmberCLIRailsHelper to EmberRailsHelper and be done with it.

This whole acronym thing is a huge pain in the butt.

@rwz
Copy link
Collaborator

rwz commented Apr 6, 2015

EmberCLI is still alright since it's not being dynamically resolved.

@seanpdoyle
Copy link
Contributor Author

closing in favor of #144

@seanpdoyle seanpdoyle closed this Apr 6, 2015
@seanpdoyle seanpdoyle deleted the sd-legacy-inflector branch April 6, 2015 18:20
@rwz
Copy link
Collaborator

rwz commented Apr 6, 2015

You do realize you can force push to your branch and update existing PRs, right?

@seanpdoyle
Copy link
Contributor Author

@rwz yup

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