remove trailing whitespace from engines guide
This commit is contained in:
parent
b1c72a3675
commit
fdf04fe7f6
@ -57,7 +57,7 @@ The `--full` option tells the generator that you want to create an engine, inclu
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
* A file at `lib/blorgh/engine.rb` which is identical in function to a standard Rails application's `config/application.rb` file:
|
* A file at `lib/blorgh/engine.rb` which is identical in function to a standard Rails application's `config/application.rb` file:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
module Blorgh
|
module Blorgh
|
||||||
class Engine < ::Rails::Engine
|
class Engine < ::Rails::Engine
|
||||||
@ -72,12 +72,12 @@ The `--mountable` option tells the generator that you want to create a "mountabl
|
|||||||
* A namespaced `ApplicationHelper` stub
|
* A namespaced `ApplicationHelper` stub
|
||||||
* A layout view template for the engine
|
* A layout view template for the engine
|
||||||
* Namespace isolation to `config/routes.rb`:
|
* Namespace isolation to `config/routes.rb`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Blorgh::Engine.routes.draw do
|
Blorgh::Engine.routes.draw do
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
* Namespace isolation to `lib/blorgh/engine.rb`:
|
* Namespace isolation to `lib/blorgh/engine.rb`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
@ -789,7 +789,7 @@ module Blorgh::Concerns::Models::Post
|
|||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
# 'included do' causes the included code to be evaluated in the
|
# 'included do' causes the included code to be evaluated in the
|
||||||
# context where it is included (post.rb), rather than be
|
# context where it is included (post.rb), rather than be
|
||||||
# executed in the module's context (blorgh/concerns/models/post).
|
# executed in the module's context (blorgh/concerns/models/post).
|
||||||
included do
|
included do
|
||||||
attr_accessor :author_name
|
attr_accessor :author_name
|
||||||
|
Loading…
Reference in New Issue
Block a user