Permalink
Browse files

patched extract_limit regexp

  • Loading branch information...
1 parent 0285260 commit f78d515bce32b861ffd47d9eb8d9abd54ba20fc7 @mmichaa mmichaa committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/enum/enum_adapter.rb
View
@@ -75,7 +75,7 @@ def simplified_type(field_type)
alias __extract_limit_enum extract_limit
def extract_limit(sql_type)
if sql_type =~ /^enum/i
- sql_type.sub(/^enum\('([^)]+)'\)/i, '\1').split("','").map { |v| v.intern }
+ sql_type.sub(/^enum\('(.+)'\)/i, '\1').split("','").map { |v| v.intern }
else
__extract_limit_enum(sql_type)
end

0 comments on commit f78d515

Please sign in to comment.