Skip to content

Commit

Permalink
Fix README to reference EmberCli module
Browse files Browse the repository at this point in the history
We introduced the `EmberCli` module in `444449e`.

We aliases `EmberCLI` to `EmberCli` for the sake of backwards
compatibility.

Moving forward, our code examples should use the `EmberCli` module.

[444449e]: 444449e
  • Loading branch information
seanpdoyle committed Nov 13, 2015
1 parent f0a311a commit 2ebd8aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rails generate ember-cli:init
This will generate an initializer that looks like the following:

```ruby
EmberCLI.configure do |c|
EmberCli.configure do |c|
c.app :frontend
end
```
Expand All @@ -55,7 +55,7 @@ end
lambda that returns `true`.

```ruby
EmberCLI.configure do |c|
EmberCli.configure do |c|
c.app :adminpanel # path is "<your-rails-root>/adminpanel"
c.app :frontend,
path: "/path/to/your/ember-cli-app/on/disk",
Expand Down Expand Up @@ -84,7 +84,7 @@ In the initializer you may specify multiple Ember CLI apps, each of which can be
referenced with the view helper independently. You'd accomplish this like so:

```ruby
EmberCLI.configure do |c|
EmberCli.configure do |c|
c.app :frontend
c.app :admin_panel, path: "/somewhere/else"
end
Expand Down Expand Up @@ -232,13 +232,13 @@ export default DS.RESTAdapter.extend({

## Ember Test Suite

To run an Ember app's tests in a browser, mount the `EmberCLI::Engine`:
To run an Ember app's tests in a browser, mount the `EmberCli::Engine`:

```ruby
# config/routes.rb

Rails.application.routes.draw do
mount EmberCLI::Engine => "ember-tests" if Rails.env.development?
mount EmberCli::Engine => "ember-tests" if Rails.env.development?

root "application#index"
end
Expand Down Expand Up @@ -481,7 +481,7 @@ from the Ember distribution. You can do so by setting the `exclude_ember_deps`
option like so:

```ruby
EmberCLI.configure do |c|
EmberCli.configure do |c|
c.app :frontend, exclude_ember_deps: "jquery"
c.app :admin_panel, exclude_ember_deps: ["jquery", "handlebars"]
end
Expand Down

0 comments on commit 2ebd8aa

Please sign in to comment.