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:
parent
309ac642cb
commit
71dcc40a2c
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue