Permalink
Browse files

Merge pull request #10 from taktsoft/f78d515bce32b861ffd47d9eb8d9abd5…

…4ba20fc7

extract_limit regexp
  • Loading branch information...
2 parents 0285260 + f78d515 commit 0c3ebbedcd711f0f0d8bb978fadb614a60ebed8f @electronick committed Jan 25, 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 0c3ebbe

Please sign in to comment.