1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

use public Module#include instead of send :include [ci skip]

This commit is contained in:
yuuji.yaginuma 2015-03-09 23:01:51 +09:00
parent 309ac642cb
commit 71dcc40a2c

View file

@ -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: