mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
assert_tag uses exact matches for string conditions, instead of partial matches. Use regex to do partial matches. #2799
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* assert_tag uses exact matches for string conditions, instead of partial matches. Use regex to do partial matches. #2799
|
||||
|
||||
* CGI::Session::ActiveRecordStore.data_column_name = 'foobar' to use a different session data column than the 'data' default. [nbpwie102@sneakemail.com]
|
||||
|
||||
* Do not raise an exception when default helper is missing; log a debug message instead. It's nice to delete empty helpers. [Jeremy Kemper]
|
||||
|
||||
@@ -497,7 +497,7 @@ module HTML #:nodoc:
|
||||
def match_condition(value, condition)
|
||||
case condition
|
||||
when String
|
||||
value && value.index(condition)
|
||||
value && value == condition
|
||||
when Regexp
|
||||
value && value.match(condition)
|
||||
when Numeric
|
||||
|
||||
Reference in New Issue
Block a user