diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-03-09 23:01:51 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-03-09 23:01:51 +0900 |
commit | 71dcc40a2c0c7417cda97204a054b9f804b74759 (patch) | |
tree | d72bf644e84dd0bc200e1bdfd553772f0fc050c1 /guides | |
parent | 309ac642cbce58158288d093a8995f4994bb74cd (diff) | |
download | rails-71dcc40a2c0c7417cda97204a054b9f804b74759.tar.gz rails-71dcc40a2c0c7417cda97204a054b9f804b74759.tar.bz2 rails-71dcc40a2c0c7417cda97204a054b9f804b74759.zip |
use public Module#include instead of send :include [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/plugins.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/plugins.md b/guides/source/plugins.md index 10738320ef..4e630a39f3 100644 --- a/guides/source/plugins.md +++ b/guides/source/plugins.md @@ -265,7 +265,7 @@ module Yaffle end end -ActiveRecord::Base.send :include, Yaffle::ActsAsYaffle +ActiveRecord::Base.include(Yaffle::ActsAsYaffle) ``` You can then return to the root directory (`cd ../..`) of your plugin and rerun the tests using `rake`. @@ -308,7 +308,7 @@ module Yaffle end end -ActiveRecord::Base.send :include, Yaffle::ActsAsYaffle +ActiveRecord::Base.include(Yaffle::ActsAsYaffle) ``` When you run `rake`, you should see the tests all pass: @@ -382,7 +382,7 @@ module Yaffle end end -ActiveRecord::Base.send :include, Yaffle::ActsAsYaffle +ActiveRecord::Base.include(Yaffle::ActsAsYaffle) ``` Run `rake` one final time and you should see: |