Navigation Menu

Skip to content

Commit

Permalink
patched extract_limit regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichaa committed Jan 20, 2012
1 parent 0285260 commit f78d515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/enum/enum_adapter.rb
Expand Up @@ -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
Expand Down

0 comments on commit f78d515

Please sign in to comment.