Commit graph

4 commits

Author SHA1 Message Date
Alexis Reigel
f99b0cc585 no need for a named parameter 2018-01-17 09:55:00 +01:00
Alexis Reigel
a63792b724 accepts .all as a hook scope as well 2018-01-17 09:55:00 +01:00
Alexis Reigel
a78abf3a00 use safer .hooks_for instead of .public_send
with .public_send we can't make sure that the scope on the model
actually exists.
2018-01-17 09:55:00 +01:00
Alexis Reigel
ac92d70d90 extract concern for hook triggers 2018-01-17 09:55:00 +01:00