diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-07 10:41:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-07 10:41:44 -0300 |
commit | 9b19861ec0954c5bbbd8b71d33439360a0148d6b (patch) | |
tree | 38e62b8147de3b68ccefd91bdd6d4f30c83e62e5 /activesupport/lib/active_support | |
parent | d7bbe075f9f7b39ab1c3d9ee8189b296d3f79dea (diff) | |
download | rails-9b19861ec0954c5bbbd8b71d33439360a0148d6b.tar.gz rails-9b19861ec0954c5bbbd8b71d33439360a0148d6b.tar.bz2 rails-9b19861ec0954c5bbbd8b71d33439360a0148d6b.zip |
Improve the exception message to direct people to all the possible values
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index b3d3f3caec..ab37e128e9 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -287,7 +287,8 @@ module ActiveSupport def self.build(chain, filter, kind, options) if filter.is_a?(String) raise ArgumentError, <<-MSG.squish - Passing string to define callback is not supported. Use proc instead. + Passing string to define a callback is not supported. See the `.set_callback` + documentation to see supported values. MSG end |