Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

patched extract_limit regexp

  • Loading branch information...
commit f78d515bce32b861ffd47d9eb8d9abd54ba20fc7 1 parent 0285260
@mmichaa mmichaa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/enum/enum_adapter.rb
View
2  lib/enum/enum_adapter.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.