diff options
author | José Valim <jose.valim@gmail.com> | 2012-02-07 23:10:14 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-02-07 23:10:43 +0100 |
commit | a17d047a735e7de973f4fc340d05123524ff6d70 (patch) | |
tree | bb419529b3551c683b0e31b50988073ae01494f0 /actionpack/lib/action_view | |
parent | 827b520bd1f946471105d9dd9593b9db56b0f6bc (diff) | |
download | rails-a17d047a735e7de973f4fc340d05123524ff6d70.tar.gz rails-a17d047a735e7de973f4fc340d05123524ff6d70.tar.bz2 rails-a17d047a735e7de973f4fc340d05123524ff6d70.zip |
Trim down Active Model API by removing valid? and errors.full_messages
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/active_model_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index 1187956081..e27111012d 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -39,7 +39,7 @@ module ActionView private def object_has_errors? - object.respond_to?(:errors) && object.errors.respond_to?(:full_messages) && error_message.any? + object.respond_to?(:errors) && object.errors.respond_to?(:[]) && error_message.present? end def tag_generate_errors?(options) |