diff options
author | Ilja Krijger <ilja@quittheprogram.org> | 2013-12-28 11:24:01 +0100 |
---|---|---|
committer | Ilja Krijger <ilja@quittheprogram.org> | 2013-12-28 11:24:01 +0100 |
commit | 1196bec8e0446aa3bd5f666a9580ed7e7215c973 (patch) | |
tree | 8cd5bb6e01e5e7523b8ab273256e5f9e36e90924 /guides | |
parent | 04108f214c9bc43c2cd139f46718395c062bed46 (diff) | |
download | rails-1196bec8e0446aa3bd5f666a9580ed7e7215c973.tar.gz rails-1196bec8e0446aa3bd5f666a9580ed7e7215c973.tar.bz2 rails-1196bec8e0446aa3bd5f666a9580ed7e7215c973.zip |
Typo fix [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/engines.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md index 87b0a1ac16..bbd63bb892 100644 --- a/guides/source/engines.md +++ b/guides/source/engines.md @@ -959,8 +959,8 @@ self.author = Blorgh.author_class.find_or_create_by(name: author_name) Resulting in something a little shorter, and more implicit in its behavior. The `author_class` method should always return a `Class` object. -Since we changed the `author_class` method to return a `String` instead of a -`Class`, we must also modify our `belongs_to` definition in the `Blorgh::Post` +Since we changed the `author_class` method to return a `Class` instead of a +`String`, we must also modify our `belongs_to` definition in the `Blorgh::Post` model: ```ruby @@ -1014,7 +1014,8 @@ application. The same thing goes if you want to use a standard initializer. For locales, simply place the locale files in the `config/locales` directory, just like you would in an application. -Testing an engine ----------------- +Testing an engine +----------------- When an engine is generated, there is a smaller dummy application created inside it at `test/dummy`. This application is used as a mounting point for the engine, |